import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		
		for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		}
		
		sc.close();
		
		insertionSort(list);
		
		String str = "";
		for (int i : list) {
			str += String.valueOf(i) + " ";
		}
		System.out.println(str.trim());
	}
	
	static List<Integer> insertionSort(List<Integer> list) {
		for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		}
		return list;
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		
		for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		}
		
		sc.close();
		
		insertionSort(list);
		
		String str = "";
		for (int i : list) {
			str += String.valueOf(i) + " ";
		}
		System.out.println(str.trim());
	}
	
	static List<Integer> insertionSort(List<Integer> list) {
		for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		}
		return list;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		
		for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		}
		
		sc.close();
		
		insertionSort(list);
		
		String str = "";
		for (int i : list) {
			str += String.valueOf(i) + " ";
		}
		System.out.println(str.trim());
	} main {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		
		for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		}
		
		sc.close();
		
		insertionSort(list);
		
		String str = "";
		for (int i : list) {
			str += String.valueOf(i) + " ";
		}
		System.out.println(str.trim());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			list.add(sc.nextInt());
		} {
			list.add(sc.nextInt());
		} list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc sc.close() sc.close sc insertionSort(list) insertionSort list String str = ""; str "" for (int i : list) {
			str += String.valueOf(i) + " ";
		} int i list {
			str += String.valueOf(i) + " ";
		} {
			str += String.valueOf(i) + " ";
		} str += String.valueOf(i) + " " str String.valueOf(i) + " " String.valueOf(i) String.valueOf String i " " System.out.println(str.trim()) System.out.println System.out System System.out str.trim() str.trim str String[] args args static List<Integer> insertionSort(List<Integer> list) {
		for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		}
		return list;
	} insertionSort {
		for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		}
		return list;
	} for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		} int i=1; int i=1; i 1 i<list.size() i list.size() list.size list i++ i++ i {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		} {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		} int v = list.get(i); v list.get(i) list.get list i int j = i - 1; j i - 1 i 1 while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			} j >= 0 && list.get(j) > v j >= 0 j 0 list.get(j) > v list.get(j) list.get list j v {
				list.set(j + 1, list.get(j));
				j--;
			} list.set(j + 1, list.get(j)) list.set list j + 1 j 1 list.get(j) list.get list j j-- j list.set(j + 1, v) list.set list j + 1 j 1 v return list; list List<Integer> list list public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		
		for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		}
		
		sc.close();
		
		insertionSort(list);
		
		String str = "";
		for (int i : list) {
			str += String.valueOf(i) + " ";
		}
		System.out.println(str.trim());
	}
	
	static List<Integer> insertionSort(List<Integer> list) {
		for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		}
		return list;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		
		for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		}
		
		sc.close();
		
		insertionSort(list);
		
		String str = "";
		for (int i : list) {
			str += String.valueOf(i) + " ";
		}
		System.out.println(str.trim());
	}
	
	static List<Integer> insertionSort(List<Integer> list) {
		for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		}
		return list;
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<>();
		
		for (int i=0; i<3; i++) {
			list.add(sc.nextInt());
		}
		
		sc.close();
		
		insertionSort(list);
		
		String str = "";
		for (int i : list) {
			str += String.valueOf(i) + " ";
		}
		System.out.println(str.trim());
	}
	
	static List<Integer> insertionSort(List<Integer> list) {
		for (int i=1; i<list.size(); i++) {
			int v = list.get(i);
			int j = i - 1;
			while (j >= 0 && list.get(j) > v) {
				list.set(j + 1, list.get(j));
				j--;
			}
			list.set(j + 1, v);
		}
		return list;
	}
}