import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int[] x = new int[3];

		for(int i = 0;i < 3;i++)	x[i] = scan.nextInt();

		for(int i = 0;i < 3;i++){
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		}

		System.out.println(x[0] + " " + x[1] + " " + x[2]);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int[] x = new int[3];

		for(int i = 0;i < 3;i++)	x[i] = scan.nextInt();

		for(int i = 0;i < 3;i++){
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		}

		System.out.println(x[0] + " " + x[1] + " " + x[2]);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int[] x = new int[3];

		for(int i = 0;i < 3;i++)	x[i] = scan.nextInt();

		for(int i = 0;i < 3;i++){
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		}

		System.out.println(x[0] + " " + x[1] + " " + x[2]);
	} main {
		Scanner scan = new Scanner(System.in);
		int[] x = new int[3];

		for(int i = 0;i < 3;i++)	x[i] = scan.nextInt();

		for(int i = 0;i < 3;i++){
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		}

		System.out.println(x[0] + " " + x[1] + " " + x[2]);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] x = new int[3]; x new int[3] 3 for(int i = 0;i < 3;i++)	x[i] = scan.nextInt(); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i x[i] = scan.nextInt(); x[i] = scan.nextInt() x[i] x i scan.nextInt() scan.nextInt scan for(int i = 0;i < 3;i++){
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		} {
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		} int tmp = x[i]; tmp x[i] x i int j; j for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1]; j = i; j = i j i j > 0 && x[j-1] > tmp j > 0 j 0 x[j-1] > tmp x[j-1] x j-1 j 1 tmp j-- j-- j x[j] = x[j-1]; x[j] = x[j-1] x[j] x j x[j-1] x j-1 j 1 x[j] = tmp x[j] x j tmp System.out.println(x[0] + " " + x[1] + " " + x[2]) System.out.println System.out System System.out x[0] + " " + x[1] + " " + x[2] " " x[1] x[0] + " " + x[1] + " " + x[2] x[0] x 0 " " x[1] x 1 " " x[2] x 2 String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int[] x = new int[3];

		for(int i = 0;i < 3;i++)	x[i] = scan.nextInt();

		for(int i = 0;i < 3;i++){
			int tmp = x[i];
			int j;
			for(j = i;j > 0 && x[j-1] > tmp;j--)
				x[j] = x[j-1];
			x[j] = tmp;
		}

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