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

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

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