import java.util.Scanner;

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

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner r = new Scanner(System.in);
		int a[] = new int[3];
		int l = 0;
		for(int i = 0;i < 3;i++){
			a[i] = r.nextInt();
		}
		
		for(int i = 0;i < 3;i++){
			for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			}
			
		}
		System.out.println(a[0]+" "+a[1]+" "+a[2]);
	}

} Main public static void main(String[] args){
		Scanner r = new Scanner(System.in);
		int a[] = new int[3];
		int l = 0;
		for(int i = 0;i < 3;i++){
			a[i] = r.nextInt();
		}
		
		for(int i = 0;i < 3;i++){
			for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			}
			
		}
		System.out.println(a[0]+" "+a[1]+" "+a[2]);
	} main {
		Scanner r = new Scanner(System.in);
		int a[] = new int[3];
		int l = 0;
		for(int i = 0;i < 3;i++){
			a[i] = r.nextInt();
		}
		
		for(int i = 0;i < 3;i++){
			for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			}
			
		}
		System.out.println(a[0]+" "+a[1]+" "+a[2]);
	} Scanner r = new Scanner(System.in); r new Scanner(System.in) int a[] = new int[3]; a new int[3] 3 int l = 0; l 0 for(int i = 0;i < 3;i++){
			a[i] = r.nextInt();
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			a[i] = r.nextInt();
		} {
			a[i] = r.nextInt();
		} a[i] = r.nextInt() a[i] a i r.nextInt() r.nextInt r for(int i = 0;i < 3;i++){
			for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			}
			
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			}
			
		} {
			for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			}
			
		} for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			} {
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			} if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				} a[i] < a[j] a[i] a i a[j] a j {
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				} l = a[i] l a[i] a i a[i] = a[j] a[i] a i a[j] a j a[j] = l a[j] a j l 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 String[] args args public class Main {
	public static void main(String[] args){
		Scanner r = new Scanner(System.in);
		int a[] = new int[3];
		int l = 0;
		for(int i = 0;i < 3;i++){
			a[i] = r.nextInt();
		}
		
		for(int i = 0;i < 3;i++){
			for(int j = 0;j < 3;j++){
				if(a[i] < a[j]){
					l = a[i];
					a[i] = a[j];
					a[j] = l;
				}
			}
			
		}
		System.out.println(a[0]+" "+a[1]+" "+a[2]);
	}

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

} Main
import java.util.Scanner;

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

}