import java.util.Scanner;
class Main {
	int a,b,c,i;
	private int[] sei = new int[3];
	public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a < b){
			if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}
		}else if(a < c){
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}
	}
	public static void main(String[] args){
		new Main().suzuki();
	}
} import java.util.Scanner; Scanner java.util class Main {
	int a,b,c,i;
	private int[] sei = new int[3];
	public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a < b){
			if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}
		}else if(a < c){
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}
	}
	public static void main(String[] args){
		new Main().suzuki();
	}
} Main int a a b b c c i; i private int[] sei = new int[3]; sei new int[3] 3 public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a < b){
			if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}
		}else if(a < c){
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}
	} suzuki {
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a < b){
			if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}
		}else if(a < c){
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt() c sc.nextInt() sc.nextInt sc if(a < b){
			if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}
		}else if(a < c){
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		} a < b a b {
			if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}
		} if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			} b < c b c {
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			} sei[0] = a sei[0] sei 0 a sei[1] = b sei[1] sei 1 b sei[2] = c sei[2] sei 2 c System.out.println(sei[0] + " " + sei[1] + " " + sei[2]) System.out.println System.out System System.out sei[0] + " " + sei[1] + " " + sei[2] " " sei[1] sei[0] + " " + sei[1] + " " + sei[2] sei[0] sei 0 " " sei[1] sei 1 " " sei[2] sei 2 if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			} a < c a c {
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			} sei[0] = a sei[0] sei 0 a sei[1] = c sei[1] sei 1 c sei[2] = b sei[2] sei 2 b System.out.println(sei[0] + " " + sei[1] + " " + sei[2]) System.out.println System.out System System.out sei[0] + " " + sei[1] + " " + sei[2] " " sei[1] sei[0] + " " + sei[1] + " " + sei[2] sei[0] sei 0 " " sei[1] sei 1 " " sei[2] sei 2 {
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			} sei[0] = c sei[0] sei 0 c sei[1] = a sei[1] sei 1 a sei[2] = b sei[2] sei 2 b System.out.println(sei[0] + " " + sei[1] + " " + sei[2]) System.out.println System.out System System.out sei[0] + " " + sei[1] + " " + sei[2] " " sei[1] sei[0] + " " + sei[1] + " " + sei[2] sei[0] sei 0 " " sei[1] sei 1 " " sei[2] sei 2 if(a < c){
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		} a < c a c {
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		} sei[0] = b sei[0] sei 0 b sei[1] = a sei[1] sei 1 a sei[2] = c sei[2] sei 2 c System.out.println(sei[0] + " " + sei[1] + " " + sei[2]) System.out.println System.out System System.out sei[0] + " " + sei[1] + " " + sei[2] " " sei[1] sei[0] + " " + sei[1] + " " + sei[2] sei[0] sei 0 " " sei[1] sei 1 " " sei[2] sei 2 if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		} b < c b c {
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		} sei[0] = b sei[0] sei 0 b sei[1] = c sei[1] sei 1 c sei[2] = a sei[2] sei 2 a System.out.println(sei[0] + " " + sei[1] + " " + sei[2]) System.out.println System.out System System.out sei[0] + " " + sei[1] + " " + sei[2] " " sei[1] sei[0] + " " + sei[1] + " " + sei[2] sei[0] sei 0 " " sei[1] sei 1 " " sei[2] sei 2 {
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		} sei[0] = c sei[0] sei 0 c sei[1] = b sei[1] sei 1 b sei[2] = a sei[2] sei 2 a System.out.println(sei[0] + " " + sei[1] + " " + sei[2]) System.out.println System.out System System.out sei[0] + " " + sei[1] + " " + sei[2] " " sei[1] sei[0] + " " + sei[1] + " " + sei[2] sei[0] sei 0 " " sei[1] sei 1 " " sei[2] sei 2 public static void main(String[] args){
		new Main().suzuki();
	} main {
		new Main().suzuki();
	} new Main().suzuki() new Main().suzuki new Main() String[] args args
import java.util.Scanner;
class Main {
	int a,b,c,i;
	private int[] sei = new int[3];
	public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a < b){
			if(b < c){
				sei[0] = a;
				sei[1] = b;
				sei[2] = c;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else if(a < c){
				sei[0] = a;
				sei[1] = c;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}else{
				sei[0] = c;
				sei[1] = a;
				sei[2] = b;
				System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
			}
		}else if(a < c){
			sei[0] = b;
			sei[1] = a;
			sei[2] = c;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else if(b < c){
			sei[0] = b;
			sei[1] = c;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}else{
			sei[0] = c;
			sei[1] = b;
			sei[2] = a;
			System.out.println(sei[0] + " " + sei[1] + " " + sei[2]);
		}
	}
	public static void main(String[] args){
		new Main().suzuki();
	}
}