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

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

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