import java.util.Scanner;
class Main {
    public void kami() {
        		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if(a > b && a > c){
			int work = c;
			c = a;
			a = work;
			
			if(a > b){
				work = a;
				a = b;
				b = work;
			}
		}else if(b > a && b > c){
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		}else if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		}
		System.out.println(a + " " + b + " " + c);
    }
	public static void main(String[] args) {
        new Main().kami();
	}

} import java.util.Scanner; Scanner java.util class Main {
    public void kami() {
        		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if(a > b && a > c){
			int work = c;
			c = a;
			a = work;
			
			if(a > b){
				work = a;
				a = b;
				b = work;
			}
		}else if(b > a && b > c){
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		}else if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		}
		System.out.println(a + " " + b + " " + c);
    }
	public static void main(String[] args) {
        new Main().kami();
	}

} Main public void kami() {
        		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if(a > b && a > c){
			int work = c;
			c = a;
			a = work;
			
			if(a > b){
				work = a;
				a = b;
				b = work;
			}
		}else if(b > a && b > c){
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		}else if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		}
		System.out.println(a + " " + b + " " + c);
    } kami {
        		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if(a > b && a > c){
			int work = c;
			c = a;
			a = work;
			
			if(a > b){
				work = a;
				a = b;
				b = work;
			}
		}else if(b > a && b > c){
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		}else if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		}
		System.out.println(a + " " + b + " " + c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if(a > b && a > c){
			int work = c;
			c = a;
			a = work;
			
			if(a > b){
				work = a;
				a = b;
				b = work;
			}
		}else if(b > a && b > c){
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		}else if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		} a > b && a > c a > b a b a > c a c {
			int work = c;
			c = a;
			a = work;
			
			if(a > b){
				work = a;
				a = b;
				b = work;
			}
		} int work = c; work c c = a c a a = work a work if(a > b){
				work = a;
				a = b;
				b = work;
			} a > b a b {
				work = a;
				a = b;
				b = work;
			} work = a work a a = b a b b = work b work if(b > a && b > c){
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		}else if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		} b > a && b > c b > a b a b > c b c {
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		} int work = c; work c c = b c b b = work b work if(a > b){
				work = b;
				b = a;
				a = work;
			} a > b a b {
				work = b;
				b = a;
				a = work;
			} work = b work b b = a b a a = work a work if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		} c > a && c > b c > a c a c > b c b {
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		} if(a > b){
				int work = b;
				b = a;
				a = work;
			} a > b a b {
				int work = b;
				b = a;
				a = work;
			} int work = b; work b b = a b a a = work a work System.out.println(a + " " + b + " " + c) System.out.println System.out System System.out a + " " + b + " " + c " " b a + " " + b + " " + c a " " b " " c public static void main(String[] args) {
        new Main().kami();
	} main {
        new Main().kami();
	} new Main().kami() new Main().kami new Main() String[] args args
import java.util.Scanner;
class Main {
    public void kami() {
        		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if(a > b && a > c){
			int work = c;
			c = a;
			a = work;
			
			if(a > b){
				work = a;
				a = b;
				b = work;
			}
		}else if(b > a && b > c){
			int work = c;
			c = b;
			b = work;
			
			if(a > b){
				work = b;
				b = a;
				a = work;
			}
		}else if(c > a && c > b){
			if(a > b){
				int work = b;
				b = a;
				a = work;
			}
		}
		System.out.println(a + " " + b + " " + c);
    }
	public static void main(String[] args) {
        new Main().kami();
	}

}