
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	}
	public static int[] sorted(int[] array){
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	}
	public static int[] sorted(int[] array){
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	}

} Main /**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] s = br.readLine().split(" "); s br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] arr = new int[3]; arr new int[3] 3 arr[0] = Integer.parseInt(s[0]) arr[0] arr 0 Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 arr[1] = Integer.parseInt(s[1]) arr[1] arr 1 Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 arr[2] = Integer.parseInt(s[2]) arr[2] arr 2 Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 arr = sorted(arr) arr sorted(arr) sorted arr for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		} int i = 0 ; int i = 0 ; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		} {
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		} System.out.print(arr[i]) System.out.print System.out System System.out arr[i] arr i if(i!= arr.length-1){
				System.out.print(" ");
			} i!= arr.length-1 i arr.length-1 arr.length arr arr.length 1 {
				System.out.print(" ");
			} System.out.print(" ") System.out.print System.out System System.out " " System.out.println("") System.out.println System.out System System.out "" String[] args args public static int[] sorted(int[] array){
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	} sorted {
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	} int[] ar = array; ar array int temp = 0; temp 0 for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		} int i = 0 ; int i = 0 ; i 0 i < array.length i array.length array array.length i++ i++ i {
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		} {
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		} for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			} int j = i+1 ; int j = i+1 ; j i+1 i 1 j < array.length j array.length array array.length j++ j++ j {
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			} {
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			} if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				} ar[i] > ar[j] ar[i] ar i ar[j] ar j {
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				} temp = ar[i] temp ar[i] ar i ar[i] = ar[j] ar[i] ar i ar[j] ar j ar[j] = temp ar[j] ar j temp return ar; ar int[] array array public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	}
	public static int[] sorted(int[] array){
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	}

} public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	}
	public static int[] sorted(int[] array){
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	}

} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	}
	public static int[] sorted(int[] array){
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	}

}