import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner stdIn = new Scanner (System.in);
		int i,j,tmp;
		int[] a = new int[3];
		for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		}
		for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		}

		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 stdIn = new Scanner (System.in);
		int i,j,tmp;
		int[] a = new int[3];
		for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		}
		for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		}

		System.out.println(a[0] + " " + a[1] + " " + a[2]);
	}

} Main public static void main(String[] args) {

		Scanner stdIn = new Scanner (System.in);
		int i,j,tmp;
		int[] a = new int[3];
		for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		}
		for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		}

		System.out.println(a[0] + " " + a[1] + " " + a[2]);
	} main {

		Scanner stdIn = new Scanner (System.in);
		int i,j,tmp;
		int[] a = new int[3];
		for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		}
		for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		}

		System.out.println(a[0] + " " + a[1] + " " + a[2]);
	} Scanner stdIn = new Scanner (System.in); stdIn new Scanner (System.in) int i i j j tmp; tmp int[] a = new int[3]; a new int[3] 3 for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		} i = 0; i = 0 i 0 i < a.length i a.length a a.length i++ i++ i {
			a[i] = stdIn.nextInt();
		} {
			a[i] = stdIn.nextInt();
		} a[i] = stdIn.nextInt() a[i] a i stdIn.nextInt() stdIn.nextInt stdIn for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		} i = 0; i = 0 i 0 i < a.length i a.length a a.length i++ i++ i {
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		} {
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		} for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			} j = i+1; j = i+1 j i+1 i 1 j < a.length j a.length a a.length j++ j++ j {
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			} {
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			} if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				} a[i] > a[j] a[i] a i a[j] a j {
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				} tmp = a[i] tmp a[i] a i a[i] = a[j] a[i] a i a[j] a j a[j] = tmp a[j] a j tmp 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 stdIn = new Scanner (System.in);
		int i,j,tmp;
		int[] a = new int[3];
		for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		}
		for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		}

		System.out.println(a[0] + " " + a[1] + " " + a[2]);
	}

} public class Main {
	public static void main(String[] args) {

		Scanner stdIn = new Scanner (System.in);
		int i,j,tmp;
		int[] a = new int[3];
		for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		}
		for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		}

		System.out.println(a[0] + " " + a[1] + " " + a[2]);
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner stdIn = new Scanner (System.in);
		int i,j,tmp;
		int[] a = new int[3];
		for(i = 0; i < a.length; i++){
			a[i] = stdIn.nextInt();
		}
		for(i = 0; i < a.length; i++){
			for(j = i+1; j < a.length; j++){
				if(a[i] > a[j]){
					tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}

			}
		}

		System.out.println(a[0] + " " + a[1] + " " + a[2]);
	}

}