public class Solution {
    public static void main(String[] args) throws Exception {
        //напишите тут ваш код
        InputStream test = System.in;
        Reader testReader = new InputStreamReader(test);
        BufferedReader text = new BufferedReader(testReader);
        String text1 = text.readLine();
        String text2 = text.readLine();
        String text3 = text.readLine();
        int a = Integer.parseInt(text1);
        int b = Integer.parseInt(text2);
        int c = Integer.parseInt(text3);
        int max, mid, min;
        if (a > b && a > c) {a = max;}
            {if (b > c) {b = mid; c = min;}
            else {b = min; c = mid;}}
        if (c > a && c > b) {c = max;}
            {if (a > b) {a = mid; b = min;}
            else {b = mid; a = min;}}
        if (b > a && b > c) {b = max;}
            {if (a > c) {c = min; a = mid;}
            else {c = mid; a = min;}}
        System.out.println(max + " " + mid + " " + min);
    }
}