import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int[] num = new int[3];
		int wk;
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		}
		for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		}
		System.out.println(num[0] +" "+ num[1] +" "+ num[2]);
		sc.close();
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int[] num = new int[3];
		int wk;
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		}
		for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		}
		System.out.println(num[0] +" "+ num[1] +" "+ num[2]);
		sc.close();
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int[] num = new int[3];
		int wk;
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		}
		for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		}
		System.out.println(num[0] +" "+ num[1] +" "+ num[2]);
		sc.close();
	} main {
		// TODO ?????????????????????????????????????????????
		int[] num = new int[3];
		int wk;
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		}
		for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		}
		System.out.println(num[0] +" "+ num[1] +" "+ num[2]);
		sc.close();
	} int[] num = new int[3]; num new int[3] 3 int wk; wk Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			num[i] = sc.nextInt();
		} {
			num[i] = sc.nextInt();
		} num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		} int j=0; int j=0; j 0 j<3-1 j 3-1 3 1 j++ j++ j {
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		} {
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		} for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			} int i=j+1; int i=j+1; i j+1 j 1 i<3 i 3 i++ i++ i {
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			} {
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			} if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				} num[j]>num[i] num[j] num j num[i] num i {
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				} wk = num[i] wk num[i] num i num[i] = num[j] num[i] num i num[j] num j num[j] = wk num[j] num j wk System.out.println(num[0] +" "+ num[1] +" "+ num[2]) System.out.println System.out System System.out num[0] +" "+ num[1] +" "+ num[2] " " num[1] num[0] +" "+ num[1] +" "+ num[2] num[0] num 0 " " num[1] num 1 " " num[2] num 2 sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int[] num = new int[3];
		int wk;
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		}
		for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		}
		System.out.println(num[0] +" "+ num[1] +" "+ num[2]);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int[] num = new int[3];
		int wk;
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		}
		for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		}
		System.out.println(num[0] +" "+ num[1] +" "+ num[2]);
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int[] num = new int[3];
		int wk;
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<3;i++){
			num[i] = sc.nextInt();
		}
		for(int j=0;j<3-1;j++){
			for(int i=j+1;i<3;i++){
				if(num[j]>num[i]){
					wk = num[i];
					num[i] = num[j];
					num[j] = wk;
				}
			}
		}
		System.out.println(num[0] +" "+ num[1] +" "+ num[2]);
		sc.close();
	}

}