package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if((a > b && a > c) && b > c)
System.out.print(a+" "+b+" "+c); // ok
else if((a > b && a > c ) && b < c)
System.out.print(a+" "+c+" "+b);
else if((b > a && b >c) && a > c)
System.out.print(b+" "+a+" "+c);
else if((b > a && b > c) && a < c)
System.out.print(b+" "+c+" "+a);
else if((c > a && c > b) && a > b)
System.out.print(c+" "+a+" "+b);
else if((c > a && c> b) && a < b)
System.out.print(c+" "+b+" "+a);
}
}
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.util.Scanner;
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if((a > b && a > c) && b > c)
System.out.print(a+" "+b+" "+c); // ok
else if((a > b && a > c ) && b < c)
System.out.print(a+" "+c+" "+b);
else if((b > a && b >c) && a > c)
System.out.print(b+" "+a+" "+c);
else if((b > a && b > c) && a < c)
System.out.print(b+" "+c+" "+a);
else if((c > a && c > b) && a > b)
System.out.print(c+" "+a+" "+b);
else if((c > a && c> b) && a < b)
System.out.print(c+" "+b+" "+a);
}
}