import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String[] line = br.readLine().split(" ");
			int[] list = new int[3];
			list[0] = Integer.parseInt(line[0]);
			list[1] = Integer.parseInt(line[1]);
			list[2] = Integer.parseInt(line[2]);

			boolean isSorted = false;
			while(!isSorted) {
				for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				}
				if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				}
			} 
			System.out.println(list[0] + " " + list[1] + " " + list[2]);
	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String[] line = br.readLine().split(" ");
			int[] list = new int[3];
			list[0] = Integer.parseInt(line[0]);
			list[1] = Integer.parseInt(line[1]);
			list[2] = Integer.parseInt(line[2]);

			boolean isSorted = false;
			while(!isSorted) {
				for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				}
				if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				}
			} 
			System.out.println(list[0] + " " + list[1] + " " + list[2]);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String[] line = br.readLine().split(" ");
			int[] list = new int[3];
			list[0] = Integer.parseInt(line[0]);
			list[1] = Integer.parseInt(line[1]);
			list[2] = Integer.parseInt(line[2]);

			boolean isSorted = false;
			while(!isSorted) {
				for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				}
				if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				}
			} 
			System.out.println(list[0] + " " + list[1] + " " + list[2]);
	} main {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String[] line = br.readLine().split(" ");
			int[] list = new int[3];
			list[0] = Integer.parseInt(line[0]);
			list[1] = Integer.parseInt(line[1]);
			list[2] = Integer.parseInt(line[2]);

			boolean isSorted = false;
			while(!isSorted) {
				for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				}
				if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				}
			} 
			System.out.println(list[0] + " " + list[1] + " " + list[2]);
	} BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] list = new int[3]; list new int[3] 3 list[0] = Integer.parseInt(line[0]) list[0] list 0 Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 list[1] = Integer.parseInt(line[1]) list[1] list 1 Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 list[2] = Integer.parseInt(line[2]) list[2] list 2 Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 2 boolean isSorted = false; isSorted false while(!isSorted) {
				for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				}
				if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				}
			} !isSorted isSorted {
				for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				}
				if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				}
			} for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				} int i = 0; int i = 0; i 0 i < list.length - 1 i list.length - 1 list.length list list.length 1 i++ i++ i {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				} {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				} int temp; temp if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					} list[i] > list[i+1] list[i] list i list[i+1] list i+1 i 1 {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					} temp = list[i+1] temp list[i+1] list i+1 i 1 list [i+1] = list [i] list [i+1] list i+1 i 1 list [i] list i list [i] = temp list [i] list i temp if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				} list[0] <=  list[1] && list[1] <= list[2] list[0] <=  list[1] list[0] list 0 list[1] list 1 list[1] <= list[2] list[1] list 1 list[2] list 2 {
					isSorted = true;
				} isSorted = true isSorted true System.out.println(list[0] + " " + list[1] + " " + list[2]) System.out.println System.out System System.out list[0] + " " + list[1] + " " + list[2] " " list[1] list[0] + " " + list[1] + " " + list[2] list[0] list 0 " " list[1] list 1 " " list[2] list 2 String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

			String[] line = br.readLine().split(" ");
			int[] list = new int[3];
			list[0] = Integer.parseInt(line[0]);
			list[1] = Integer.parseInt(line[1]);
			list[2] = Integer.parseInt(line[2]);

			boolean isSorted = false;
			while(!isSorted) {
				for(int i = 0; i < list.length - 1; i++) {
					int temp;
					if(list[i] > list[i+1]) {
						temp = list[i+1];
						list [i+1] = list [i];
						list [i] = temp;
					}
				}
				if(list[0] <=  list[1] && list[1] <= list[2]) {
					isSorted = true;
				}
			} 
			System.out.println(list[0] + " " + list[1] + " " + list[2]);
	}
}