import java.io.*;


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






    }}