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


        if (a > b && a > c  && c != b)
        {
            int max = a;
        }
        else if (b > a && b > c && a != c )
        {
            int max = b;
        }
        else if (c > b && c > a && b != a )
        {
            int max = c;
        }
        else if (a < b && a < c && b != c)
        {
            int min = a;
        }
        else if (b < c && b < a && a != c)
        {
            int min = b;
        }
        else if (c < b && c < a && a != b)
        {
            int min = c;
        }
        else if (a > c && c > b )
        {
            int mid = c;
        }
        else if (c > a && a > b)
        {
            int mid = a;
        }
        else if (a > b && b > c)
        {
            int mid = b;
        }
        System.out.println( max + " " + mid + " " + min );

    }
}