import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a[] = new int[3], work;
    	a[0] = sc.nextInt();
    	a[1] = sc.nextInt();
    	a[2] = sc.nextInt();
    	for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        }
        System.out.println(a[0] + " " + a[1] + " " + a[2]);
        sc.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a[] = new int[3], work;
    	a[0] = sc.nextInt();
    	a[1] = sc.nextInt();
    	a[2] = sc.nextInt();
    	for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        }
        System.out.println(a[0] + " " + a[1] + " " + a[2]);
        sc.close();
    }

} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a[] = new int[3], work;
    	a[0] = sc.nextInt();
    	a[1] = sc.nextInt();
    	a[2] = sc.nextInt();
    	for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        }
        System.out.println(a[0] + " " + a[1] + " " + a[2]);
        sc.close();
    } main {
		Scanner sc = new Scanner(System.in);
		int a[] = new int[3], work;
    	a[0] = sc.nextInt();
    	a[1] = sc.nextInt();
    	a[2] = sc.nextInt();
    	for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        }
        System.out.println(a[0] + " " + a[1] + " " + a[2]);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a[] = new int[3] a new int[3] 3 work; work a[0] = sc.nextInt() a[0] a 0 sc.nextInt() sc.nextInt sc a[1] = sc.nextInt() a[1] a 1 sc.nextInt() sc.nextInt sc a[2] = sc.nextInt() a[2] a 2 sc.nextInt() sc.nextInt sc for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        } for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        } int j = i + 1; int j = i + 1; j i + 1 i 1 j < 3 j 3 j++ j++ j {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        } {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        } if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        } a[i] > a[j] a[i] a i a[j] a j {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        } work = a[i] work a[i] a i a[i] = a[j] a[i] a i a[j] a j a[j] = work a[j] a j work System.out.println(a[0] + " " + a[1] + " " + a[2]) System.out.println System.out System System.out a[0] + " " + a[1] + " " + a[2] " " a[1] a[0] + " " + a[1] + " " + a[2] a[0] a 0 " " a[1] a 1 " " a[2] a 2 sc.close() sc.close sc String[] args args public class Main {


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a[] = new int[3], work;
    	a[0] = sc.nextInt();
    	a[1] = sc.nextInt();
    	a[2] = sc.nextInt();
    	for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        }
        System.out.println(a[0] + " " + a[1] + " " + a[2]);
        sc.close();
    }

} public class Main {


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a[] = new int[3], work;
    	a[0] = sc.nextInt();
    	a[1] = sc.nextInt();
    	a[2] = sc.nextInt();
    	for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        }
        System.out.println(a[0] + " " + a[1] + " " + a[2]);
        sc.close();
    }

} Main
import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a[] = new int[3], work;
    	a[0] = sc.nextInt();
    	a[1] = sc.nextInt();
    	a[2] = sc.nextInt();
    	for(int i = 0; i < 2; i++)
        	for(int j = i + 1; j < 3; j++)
        {
    			if(a[i] > a[j])
    	        {
    	            work = a[i];
    	            a[i] = a[j];
    	            a[j] = work;
    	        }
        }
        System.out.println(a[0] + " " + a[1] + " " + a[2]);
        sc.close();
    }

}