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

class Main {
	public static void main(String[] a) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int[] mt = new int[10];
		try {
			for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			}
		} catch (Exception e) {
		}

		Arrays.sort(mt);

		System.out.println(mt[9]);
		System.out.println(mt[8]);
		System.out.println(mt[7]);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util class Main {
	public static void main(String[] a) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int[] mt = new int[10];
		try {
			for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			}
		} catch (Exception e) {
		}

		Arrays.sort(mt);

		System.out.println(mt[9]);
		System.out.println(mt[8]);
		System.out.println(mt[7]);
	}
} Main public static void main(String[] a) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int[] mt = new int[10];
		try {
			for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			}
		} catch (Exception e) {
		}

		Arrays.sort(mt);

		System.out.println(mt[9]);
		System.out.println(mt[8]);
		System.out.println(mt[7]);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int[] mt = new int[10];
		try {
			for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			}
		} catch (Exception e) {
		}

		Arrays.sort(mt);

		System.out.println(mt[9]);
		System.out.println(mt[8]);
		System.out.println(mt[7]);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] mt = new int[10]; mt new int[10] 10 try {
			for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			}
		} catch (Exception e) {
		} catch (Exception e) {
		} Exception e {
		} {
			for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			}
		} for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			} int i = 0; int i = 0; i 0 i < mt.length i mt.length mt mt.length i++ i++ i {
				mt[i] = Integer.parseInt(br.readLine());
			} {
				mt[i] = Integer.parseInt(br.readLine());
			} mt[i] = Integer.parseInt(br.readLine()) mt[i] mt i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(mt) Arrays.sort Arrays mt System.out.println(mt[9]) System.out.println System.out System System.out mt[9] mt 9 System.out.println(mt[8]) System.out.println System.out System System.out mt[8] mt 8 System.out.println(mt[7]) System.out.println System.out System System.out mt[7] mt 7 String[] a a
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {
	public static void main(String[] a) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int[] mt = new int[10];
		try {
			for (int i = 0; i < mt.length; i++) {
				mt[i] = Integer.parseInt(br.readLine());
			}
		} catch (Exception e) {
		}

		Arrays.sort(mt);

		System.out.println(mt[9]);
		System.out.println(mt[8]);
		System.out.println(mt[7]);
	}
}