public class Solution {
    public static void main(String[] args) throws Exception {

        Scanner sc=new Scanner(System.in);
        int n1=sc.nextInt();
        int n2=sc.nextInt();
        int n3=sc.nextInt();
        int max=0 ;int min =0 ;int sr=0;
        if (n1>n2&&n1>n3)max=n1 ;//нашем макс присвоил в  maх
        if (n1<n2&&n1<n3)min=n1;//нашел мин присвоил min
        if (max<min&&min>max) //не понимаю как промежуток присвоить в переменную .
        System.out.println(max+" "+sr+" "+min);
    }
}