import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		}

		int n = array.length;
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		}

		for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		}

		int n = array.length;
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		}

		for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		}

		int n = array.length;
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		}

		for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		}

		int n = array.length;
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		}

		for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] array = new int[10]; array new int[10] 10 for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			array[i] = Integer.parseInt(sc.nextLine());
		} {
			array[i] = Integer.parseInt(sc.nextLine());
		} array[i] = Integer.parseInt(sc.nextLine()) array[i] array i Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int n = array.length; n array.length array array.length for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		} {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		} for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			} int j = 1; int j = 1; j 1 j < n j n j++ j++ j {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			} {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			} if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				} array[j - 1] < array[j] array[j - 1] array j - 1 j 1 array[j] array j {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				} int box = array[j - 1]; box array[j - 1] array j - 1 j 1 array[j - 1] = array[j] array[j - 1] array j - 1 j 1 array[j] array j array[j] = box array[j] array j box for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(array[i]);
		} {
			System.out.println(array[i]);
		} System.out.println(array[i]) System.out.println System.out System System.out array[i] array i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		}

		int n = array.length;
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		}

		for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		}

		int n = array.length;
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		}

		for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		}
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < 10; i++) {
			array[i] = Integer.parseInt(sc.nextLine());
		}

		int n = array.length;
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < n; j++) {
				if (array[j - 1] < array[j]) {
					int box = array[j - 1];
					array[j - 1] = array[j];
					array[j] = box;
				}
			}
		}

		for (int i = 0; i < 3; i++) {
			System.out.println(array[i]);
		}
	}
}