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



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



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