import java.io.*;
import java.util.*;
import java.util.Collections;
 
class Main{
    public static void main(String[] a) throws Exception{
    	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    	Integer[] mountains=new Integer[10];
    	for(int i=0;i<10;i++){
    		mountains[i]=Integer.valueOf(br.readLine());
    	}
    	Arrays.sort(mountains, Collections.reverseOrder());
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}    	
    }
} import java.io.*; io.* java import java.util.*; util.* java import java.util.Collections; Collections java.util class Main{
    public static void main(String[] a) throws Exception{
    	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    	Integer[] mountains=new Integer[10];
    	for(int i=0;i<10;i++){
    		mountains[i]=Integer.valueOf(br.readLine());
    	}
    	Arrays.sort(mountains, Collections.reverseOrder());
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}    	
    }
} Main public static void main(String[] a) throws Exception{
    	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    	Integer[] mountains=new Integer[10];
    	for(int i=0;i<10;i++){
    		mountains[i]=Integer.valueOf(br.readLine());
    	}
    	Arrays.sort(mountains, Collections.reverseOrder());
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}    	
    } main {
    	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    	Integer[] mountains=new Integer[10];
    	for(int i=0;i<10;i++){
    		mountains[i]=Integer.valueOf(br.readLine());
    	}
    	Arrays.sort(mountains, Collections.reverseOrder());
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}    	
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer[] mountains=new Integer[10]; mountains new Integer[10] 10 for(int i=0;i<10;i++){
    		mountains[i]=Integer.valueOf(br.readLine());
    	} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
    		mountains[i]=Integer.valueOf(br.readLine());
    	} {
    		mountains[i]=Integer.valueOf(br.readLine());
    	} mountains[i]=Integer.valueOf(br.readLine()) mountains[i] mountains i Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br Arrays.sort(mountains, Collections.reverseOrder()) Arrays.sort Arrays mountains Collections.reverseOrder() Collections.reverseOrder Collections for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			System.out.println(mountains[i]);
		} {
			System.out.println(mountains[i]);
		} System.out.println(mountains[i]) System.out.println System.out System System.out mountains[i] mountains i String[] a a
import java.io.*;
import java.util.*;
import java.util.Collections;
 
class Main{
    public static void main(String[] a) throws Exception{
    	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    	Integer[] mountains=new Integer[10];
    	for(int i=0;i<10;i++){
    		mountains[i]=Integer.valueOf(br.readLine());
    	}
    	Arrays.sort(mountains, Collections.reverseOrder());
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}    	
    }
}