import java.io.*;
import java.util.Arrays;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);
		int[] arrays = new int[10];
		String str = br.readLine();
		for (int i = 0; i < arrays.length; i++) {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		}
		Arrays.sort(arrays);
		for (int i = 1; i <= 3; i++) {
			System.out.println(arrays[arrays.length - i]);
		}
	}
		
} import java.io.*; io.* java import java.util.Arrays; Arrays java.util class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);
		int[] arrays = new int[10];
		String str = br.readLine();
		for (int i = 0; i < arrays.length; i++) {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		}
		Arrays.sort(arrays);
		for (int i = 1; i <= 3; i++) {
			System.out.println(arrays[arrays.length - i]);
		}
	}
		
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);
		int[] arrays = new int[10];
		String str = br.readLine();
		for (int i = 0; i < arrays.length; i++) {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		}
		Arrays.sort(arrays);
		for (int i = 1; i <= 3; i++) {
			System.out.println(arrays[arrays.length - i]);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);
		int[] arrays = new int[10];
		String str = br.readLine();
		for (int i = 0; i < arrays.length; i++) {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		}
		Arrays.sort(arrays);
		for (int i = 1; i <= 3; i++) {
			System.out.println(arrays[arrays.length - i]);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1); br new BufferedReader(new InputStreamReader(System.in),1) int[] arrays = new int[10]; arrays new int[10] 10 String str = br.readLine(); str br.readLine() br.readLine br for (int i = 0; i < arrays.length; i++) {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		} int i = 0; int i = 0; i 0 i < arrays.length i arrays.length arrays arrays.length i++ i++ i {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		} {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		} arrays[i] = Integer.parseInt(str) arrays[i] arrays i Integer.parseInt(str) Integer.parseInt Integer str str = br.readLine() str br.readLine() br.readLine br Arrays.sort(arrays) Arrays.sort Arrays arrays for (int i = 1; i <= 3; i++) {
			System.out.println(arrays[arrays.length - i]);
		} int i = 1; int i = 1; i 1 i <= 3 i 3 i++ i++ i {
			System.out.println(arrays[arrays.length - i]);
		} {
			System.out.println(arrays[arrays.length - i]);
		} System.out.println(arrays[arrays.length - i]) System.out.println System.out System System.out arrays[arrays.length - i] arrays arrays.length - i arrays.length arrays arrays.length i String[] args args
import java.io.*;
import java.util.Arrays;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1);
		int[] arrays = new int[10];
		String str = br.readLine();
		for (int i = 0; i < arrays.length; i++) {
			arrays[i] = Integer.parseInt(str);
			str = br.readLine();
		}
		Arrays.sort(arrays);
		for (int i = 1; i <= 3; i++) {
			System.out.println(arrays[arrays.length - i]);
		}
	}
		
}