package com.javarush.task.task04.task0420;

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

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

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());

        System.out.println(max(a,b,c)+" "+ave(a,b,c)+" "+min(a,b,c));

    }
    public static int min(int a,int b,int c){
       int s;
       if (a<=b)
           s=a;
       else
           s=b;
       if (s<=c)
           return s;
       else
           return c;
    }
    public static int max(int a,int b,int c){
        int s;
        if (a>=b)
            s=a;
        else
            s=b;
        if (s>=c)
            return s;
        else
            return c;
    }
    public static int ave(int a,int b, int c) {
        if (((a>=b) && (a<=c)) || ((a>=c) && (a<=b)))
            return a;
        else if (((b>=a) && (b<=c)) || ((b>=c) && (b<=a)))
            return b;
        else  if (((c>=a) && (c<=b)) || ((c>=b) && (c<=a)))
            return c;
    }
}