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

class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			int[] n = new int[10];
			for(int i = 0; i< 10; i++) {
				String str = br.readLine();
				n[i] = Integer.parseInt(str);
			}
//			while(str != null) {
//				n[i] = Integer.parseInt(str);
//				i++;
//			}

			Arrays.sort(n);

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

		}catch (Exception e) {
			System.exit(0);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io 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));
		try {
			int[] n = new int[10];
			for(int i = 0; i< 10; i++) {
				String str = br.readLine();
				n[i] = Integer.parseInt(str);
			}
//			while(str != null) {
//				n[i] = Integer.parseInt(str);
//				i++;
//			}

			Arrays.sort(n);

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

		}catch (Exception e) {
			System.exit(0);
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			int[] n = new int[10];
			for(int i = 0; i< 10; i++) {
				String str = br.readLine();
				n[i] = Integer.parseInt(str);
			}
//			while(str != null) {
//				n[i] = Integer.parseInt(str);
//				i++;
//			}

			Arrays.sort(n);

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

		}catch (Exception e) {
			System.exit(0);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			int[] n = new int[10];
			for(int i = 0; i< 10; i++) {
				String str = br.readLine();
				n[i] = Integer.parseInt(str);
			}
//			while(str != null) {
//				n[i] = Integer.parseInt(str);
//				i++;
//			}

			Arrays.sort(n);

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

		}catch (Exception e) {
			System.exit(0);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
			int[] n = new int[10];
			for(int i = 0; i< 10; i++) {
				String str = br.readLine();
				n[i] = Integer.parseInt(str);
			}
//			while(str != null) {
//				n[i] = Integer.parseInt(str);
//				i++;
//			}

			Arrays.sort(n);

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

		}catch (Exception e) {
			System.exit(0);
		} catch (Exception e) {
			System.exit(0);
		} Exception e {
			System.exit(0);
		} System.exit(0) System.exit System 0 {
			int[] n = new int[10];
			for(int i = 0; i< 10; i++) {
				String str = br.readLine();
				n[i] = Integer.parseInt(str);
			}
//			while(str != null) {
//				n[i] = Integer.parseInt(str);
//				i++;
//			}

			Arrays.sort(n);

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

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

class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			int[] n = new int[10];
			for(int i = 0; i< 10; i++) {
				String str = br.readLine();
				n[i] = Integer.parseInt(str);
			}
//			while(str != null) {
//				n[i] = Integer.parseInt(str);
//				i++;
//			}

			Arrays.sort(n);

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

		}catch (Exception e) {
			System.exit(0);
		}
	}
}