package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader x = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(x.readLine());
int b = Integer.parseInt(x.readLine());
int c = Integer.parseInt(x.readLine());
int max;
int mid;
int min;
if (a >= b && a >= c) {
max = a;
}
else if (b >= c && b >= a) {
max = b;
}
else if (c >= a && c >= b) {
max = c;
}
else if (a <= b && b <= c) {
mid = b;
}
else if (b <= a && a <= c){
mid = a;
}
else if (b <= c && c <= a) {
mid = c;
}
else if (a <= b && a <= c) {
min = a;
}
else if (b <= a && b <= c) {
min = b;
}
else if (c <= a && c <= b) {
min = c;
}
System.out.print(max + " " + mid + " " + min);//напишите тут ваш код
}
}