.
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String aa = bufferedReader.readLine();
String bb = bufferedReader.readLine();
String cc = bufferedReader.readLine();
int a = Integer.parseInt(aa);
int b = Integer.parseInt(bb);
int c = Integer.parseInt(cc);
if(a>b && b>c) {
System.out.println(a+" "+b+" "+c);}
else if(b>c && c>a) {
System.out.println(b+" " +c+" "+a);}
else if(a>c && c>b) {
System.out.println(a+" "+c+" "+b);}
else if(c>a && a>b) {
System.out.println(c+" "+a+" "+b);}
else if(c>b && b>a) {
System.out.println(c+" "+b+" "+a);}
else if(b>a && a>c) {
System.out.println(b+" "+a+" "+c);}
}
}