import java.io.*;

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

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	}
	public static int[] sort(int[] array, int number, int number2) {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	}
	public static int[] sort(int[] array, int number, int number2) {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


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

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String inputed = new String(in.readLine()); inputed new String(in.readLine()) String value[] = inputed.split("[\\s]+"); value inputed.split("[\\s]+") inputed.split inputed "[\\s]+" int first  = Integer.parseInt(value[0]); first Integer.parseInt(value[0]) Integer.parseInt Integer value[0] value 0 int second = Integer.parseInt(value[1]); second Integer.parseInt(value[1]) Integer.parseInt Integer value[1] value 1 int third  = Integer.parseInt(value[2]); third Integer.parseInt(value[2]) Integer.parseInt Integer value[2] value 2 int[] intvalue = new int[3]; intvalue new int[3] 3 intvalue[0] = first intvalue[0] intvalue 0 first intvalue[1] = second intvalue[1] intvalue 1 second intvalue[2] = third intvalue[2] intvalue 2 third intvalue = sort(intvalue, 0, 1) intvalue sort(intvalue, 0, 1) sort intvalue 0 1 intvalue = sort(intvalue, 1, 2) intvalue sort(intvalue, 1, 2) sort intvalue 1 2 intvalue = sort(intvalue, 0, 1) intvalue sort(intvalue, 0, 1) sort intvalue 0 1 System.out.println(intvalue[0] + " " + intvalue[1] + " " + intvalue[2]) System.out.println System.out System System.out intvalue[0] + " " + intvalue[1] + " " + intvalue[2] " " intvalue[1] intvalue[0] + " " + intvalue[1] + " " + intvalue[2] intvalue[0] intvalue 0 " " intvalue[1] intvalue 1 " " intvalue[2] intvalue 2 String[] args args public static int[] sort(int[] array, int number, int number2) {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


	} sort {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


	} if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		} array[number] > array[number2] array[number] array number array[number2] array number2 {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		} int pos1 = array[number]; pos1 array[number] array number int pos2 = array[number2]; pos2 array[number2] array number2 array[number]  = pos2 array[number] array number pos2 array[number2] = pos1 array[number2] array number2 pos1 return array; array int[] array array int number number int number2 number2 public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	}
	public static int[] sort(int[] array, int number, int number2) {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


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

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	}
	public static int[] sort(int[] array, int number, int number2) {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


	}
} Main
import java.io.*;

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

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	}
	public static int[] sort(int[] array, int number, int number2) {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


	}
}