/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.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());
        
       
        int biggest = max(max(a, b ) , c);
        
        int lowest = min(min(a, b), c);
        
        int mid = mid(a, b, c);
        
        System.out.println(biggest);
        
        System.out.println(mid);
       
        System.out.println(lowest);
	}

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