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

public class Main {
	public static void main(String[] args){
		try{
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		}catch(Exception e){
			}
		}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
	public static void main(String[] args){
		try{
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		}catch(Exception e){
			}
		}
} Main public static void main(String[] args){
		try{
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		}catch(Exception e){
			}
		} main {
		try{
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		}catch(Exception e){
			}
		} try{
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		}catch(Exception e){
			} catch(Exception e){
			} Exception e {
			} {
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		} BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); stdReader 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(stdReader.readLine());
			} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
				num[i] = Integer.parseInt(stdReader.readLine());
			} {
				num[i] = Integer.parseInt(stdReader.readLine());
			} num[i] = Integer.parseInt(stdReader.readLine()) num[i] num i Integer.parseInt(stdReader.readLine()) Integer.parseInt Integer stdReader.readLine() stdReader.readLine stdReader Arrays.sort(num) Arrays.sort Arrays num System.out.println(num[9]) System.out.println System.out System System.out num[9] num 9 System.out.println(num[8]) System.out.println System.out System System.out num[8] num 8 System.out.println(num[7]) System.out.println System.out System System.out num[7] num 7 String[] args args public class Main {
	public static void main(String[] args){
		try{
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		}catch(Exception e){
			}
		}
} public class Main {
	public static void main(String[] args){
		try{
			BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
			int[] num = new int[10];
			for(int i=0;i<10;i++){
				num[i] = Integer.parseInt(stdReader.readLine());
			}
			Arrays.sort(num);
			System.out.println(num[9]);
			System.out.println(num[8]);
			System.out.println(num[7]);
		}catch(Exception e){
			}
		}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

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