import java.io.*;

class Main{
    public static void main(String[] a){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int[] mount = new int [10];
            for(int i = 0;i < 10;i++){
                String str = br.readLine();
                int high = Integer.parseInt(str);
                if(high >= 0 && high <= 10000){
                    mount[i] = high;
                }
                for(int k = 0;k <= i; k++){
                    if(mount[k] < mount[i]){
                        int h = mount[i];
                        mount[i] = mount[k];
                        mount[k] = h;
                    }
                }
            }
            for(int j = 0;j < 3; j++){
                System.out.println(mount[j]);
            }
        }
        catch(IOException e){
        }
    }
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz