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