package com.javarush.task.task04.task0420;

/*
Сортировка трех чисел
*/

import java.io.*;

public class Solution {
    public static void main(String[] args) throws Exception {
     BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)) ;
     int a = Integer.parseInt(reader.readLine()) ;
     int b = Integer.parseInt(reader.readLine()) ;
     int c = Integer.parseInt(reader.readLine()) ;
     if(c >= a && c >= b && b >= a && c >= a) {
         System.out.println(c+ " "+b+" "+a) ;
     } else if (a >= b && a >= c && c <= b && c <= a) {
         System.out.println(a+" "+b+" "+c) ;
     } else if (c >= a && c >= b && a <= b && a <= c) {
            System.out.println(c+" "+b+" "+a);
     } else if (a >= c && a >= b && b <= c && b <= a) {
            System.out.println(a+" "+c+" "+b);
}
}
}