import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        String sN1 = reader.readLine();
        int n1 = Integer.parseInt(sN1);
        String sN2 = reader.readLine();
        int n2 = Integer.parseInt(sN2);
        String sN3 = reader.readLine();
        int n3 = Integer.parseInt(sN3);

        int min1_2 = Math.min(n1, n2);
        int min12_3 = Math.min(min1_2, n3);
        int max1_2 = Math.max(n1, n2);
        int max123 = Math.max(max1_2, n3);

        System.out.println(max123 + " " + max1_2 + " " + min12_3);

    }
}