import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int[] data = new int[3];
		data[0] = in.nextInt();//a
		data[1] = in.nextInt();//b
		data[2] = in.nextInt();//c
		
		int tmp;
		for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		}
		
		System.out.printf("%d %d %d\n", data[0], data[1], data[2]);
	}

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

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int[] data = new int[3];
		data[0] = in.nextInt();//a
		data[1] = in.nextInt();//b
		data[2] = in.nextInt();//c
		
		int tmp;
		for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		}
		
		System.out.printf("%d %d %d\n", data[0], data[1], data[2]);
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int[] data = new int[3];
		data[0] = in.nextInt();//a
		data[1] = in.nextInt();//b
		data[2] = in.nextInt();//c
		
		int tmp;
		for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		}
		
		System.out.printf("%d %d %d\n", data[0], data[1], data[2]);
	} main {
		Scanner in = new Scanner(System.in);
		
		int[] data = new int[3];
		data[0] = in.nextInt();//a
		data[1] = in.nextInt();//b
		data[2] = in.nextInt();//c
		
		int tmp;
		for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		}
		
		System.out.printf("%d %d %d\n", data[0], data[1], data[2]);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int[] data = new int[3]; data new int[3] 3 data[0] = in.nextInt() data[0] data 0 in.nextInt() in.nextInt in data[1] = in.nextInt() data[1] data 1 in.nextInt() in.nextInt in data[2] = in.nextInt() data[2] data 2 in.nextInt() in.nextInt in int tmp; tmp for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		} int i=0; int i=0; i 0 i<data.length i data.length data data.length i++ i++ i {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		} {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		} for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			} int j=i+1; int j=i+1; j i+1 i 1 j< data.length j data.length data data.length j++ j++ j {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			} {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			} if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				} data[i]>data[j] data[i] data i data[j] data j {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				} tmp = data[i] tmp data[i] data i data[i] = data[j] data[i] data i data[j] data j data[j] = tmp data[j] data j tmp System.out.printf("%d %d %d\n", data[0], data[1], data[2]) System.out.printf System.out System System.out "%d %d %d\n" data[0] data 0 data[1] data 1 data[2] data 2 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int[] data = new int[3];
		data[0] = in.nextInt();//a
		data[1] = in.nextInt();//b
		data[2] = in.nextInt();//c
		
		int tmp;
		for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		}
		
		System.out.printf("%d %d %d\n", data[0], data[1], data[2]);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int[] data = new int[3];
		data[0] = in.nextInt();//a
		data[1] = in.nextInt();//b
		data[2] = in.nextInt();//c
		
		int tmp;
		for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		}
		
		System.out.printf("%d %d %d\n", data[0], data[1], data[2]);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int[] data = new int[3];
		data[0] = in.nextInt();//a
		data[1] = in.nextInt();//b
		data[2] = in.nextInt();//c
		
		int tmp;
		for(int i=0; i<data.length; i++) {
			for(int j=i+1; j< data.length; j++) {
				if(data[i]>data[j]) {
					tmp = data[i];
					data[i] = data[j];
					data[j] = tmp;
				}
			}
		}
		
		System.out.printf("%d %d %d\n", data[0], data[1], data[2]);
	}

}