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

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

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