import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		}
		for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		}

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		}
		for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		}

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		}
		for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		}

	} main {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		}
		for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] data = new int[10]; data new int[10] 10 for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			data[i] = scan.nextInt();
		} {
			data[i] = scan.nextInt();
		} data[i] = scan.nextInt() data[i] data i scan.nextInt() scan.nextInt scan for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		} {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		} int a = data[i]; a data[i] data i int indexMin = i; indexMin i for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			} int k = i + 1; int k = i + 1; k i + 1 i 1 k < 10 k 10 k++ k++ k {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			} {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			} if (data[k] < a) {
					a = data[k];
					indexMin = k;
				} data[k] < a data[k] data k a {
					a = data[k];
					indexMin = k;
				} a = data[k] a data[k] data k indexMin = k indexMin k int temp = data[i]; temp data[i] data i data[i] = data[indexMin] data[i] data i data[indexMin] data indexMin data[indexMin] = temp data[indexMin] data indexMin temp for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		} int i = 9; int i = 9; i 9 i >= 7 i 7 i-- i-- i {
			System.out.println(data[i]);
		} {
			System.out.println(data[i]);
		} System.out.println(data[i]) System.out.println System.out System System.out data[i] data i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		}
		for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		}
		for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		for (int i = 0; i < 10; i++) {
			int a = data[i];
			int indexMin = i;
			for (int k = i + 1; k < 10; k++) {
				if (data[k] < a) {
					a = data[k];
					indexMin = k;
				}
			}
			int temp = data[i];
			data[i] = data[indexMin];
			data[indexMin] = temp;
		}
		for (int i = 9; i >= 7; i--) {
			System.out.println(data[i]);
		}

	}

}