package com.company;

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        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());

        printMax(a, b ,c);
    }

    static void printMax(int a, int b, int c) {
        int max = Math.max(Math.max(a, b), c);
        if (max == a) {
            System.out.printf("%d ", a);

            if (b >= c) {
                System.out.printf("%d %d", b, c);
            } else {
                System.out.printf("%d %d", c, b);
            }
        } else if (max == b) {
            System.out.printf("%d ", b);

            if (a >= c) {
                System.out.printf("%d %d", a, c);
            } else {
                System.out.printf("%d %d", c, a);
            }
        } else {
            System.out.printf("%d ", c);

            if (a >= b) {
                System.out.printf("%d %d", a, b);
            } else {
                System.out.printf("%d %d", b, c);
            }
        }
        System.out.println();
    }
}