package com.codegym.task.task04.task0420; /* Sorting three numbers */ import java.io.*; import java.util.Arrays; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(System.in); int a = Integer.parseInt(scanner.nextLine()); int b = Integer.parseInt(scanner.nextLine()); int c = Integer.parseInt(scanner.nextLine()); int min = 0; int med = 0; int max = 0; if ( a <= b && a <= c ){ min = a; if (b <= c){ med = b; max = c; } else { med = c; max = b; } System.out.println(max + " " + med + " " + min); } else if (b <= a && b <= c){ min = b; if (a <= c){ med = a; max = c; } else { med = c; max = a; } System.out.println(max + " " + med + " " + min); } else { min = c; if (a <= b){ med = a; max = b; } else { med = b; max = a; } System.out.println(max + " " + med + " " + min); } } }