import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {
	/*
	 * 10????????´??°??????best3?????????
	 */
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] heightArray = new int[10];

		for (int i = 0; i < 10; i++) {
			heightArray[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(heightArray);

		for (int i = 9; i >= 7; i--) {
			System.out.println(heightArray[i]);
		}

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util class Main {
	/*
	 * 10????????´??°??????best3?????????
	 */
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] heightArray = new int[10];

		for (int i = 0; i < 10; i++) {
			heightArray[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(heightArray);

		for (int i = 9; i >= 7; i--) {
			System.out.println(heightArray[i]);
		}

	}
} Main /*
	 * 10????????´??°??????best3?????????
	 */
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] heightArray = new int[10];

		for (int i = 0; i < 10; i++) {
			heightArray[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(heightArray);

		for (int i = 9; i >= 7; i--) {
			System.out.println(heightArray[i]);
		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] heightArray = new int[10];

		for (int i = 0; i < 10; i++) {
			heightArray[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(heightArray);

		for (int i = 9; i >= 7; i--) {
			System.out.println(heightArray[i]);
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] heightArray = new int[10]; heightArray new int[10] 10 for (int i = 0; i < 10; i++) {
			heightArray[i] = Integer.parseInt(br.readLine());
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			heightArray[i] = Integer.parseInt(br.readLine());
		} {
			heightArray[i] = Integer.parseInt(br.readLine());
		} heightArray[i] = Integer.parseInt(br.readLine()) heightArray[i] heightArray i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(heightArray) Arrays.sort Arrays heightArray for (int i = 9; i >= 7; i--) {
			System.out.println(heightArray[i]);
		} int i = 9; int i = 9; i 9 i >= 7 i 7 i-- i-- i {
			System.out.println(heightArray[i]);
		} {
			System.out.println(heightArray[i]);
		} System.out.println(heightArray[i]) System.out.println System.out System System.out heightArray[i] heightArray i String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {
	/*
	 * 10????????´??°??????best3?????????
	 */
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] heightArray = new int[10];

		for (int i = 0; i < 10; i++) {
			heightArray[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(heightArray);

		for (int i = 9; i >= 7; i--) {
			System.out.println(heightArray[i]);
		}

	}
}