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){
        }
    }
} import java.io.*; io.* java 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){
        }
    }
} 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){
        }
    } main {
        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){
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 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){
        } catch(IOException e){
        } IOException e {
        } {
            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]);
            }
        } int[] mount = new int [10]; mount new int [10] 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;
                    }
                }
            } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ 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;
                    }
                }
            } {
                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;
                    }
                }
            } String str = br.readLine(); str br.readLine() br.readLine br int high = Integer.parseInt(str); high Integer.parseInt(str) Integer.parseInt Integer str if(high >= 0 && high <= 10000){
                    mount[i] = high;
                } high >= 0 && high <= 10000 high >= 0 high 0 high <= 10000 high 10000 {
                    mount[i] = high;
                } mount[i] = high mount[i] 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;
                    }
                } int k = 0; int k = 0; k 0 k <= i k i k++ k++ k {
                    if(mount[k] < mount[i]){
                        int h = mount[i];
                        mount[i] = mount[k];
                        mount[k] = h;
                    }
                } {
                    if(mount[k] < mount[i]){
                        int h = mount[i];
                        mount[i] = mount[k];
                        mount[k] = h;
                    }
                } if(mount[k] < mount[i]){
                        int h = mount[i];
                        mount[i] = mount[k];
                        mount[k] = h;
                    } mount[k] < mount[i] mount[k] mount k mount[i] mount i {
                        int h = mount[i];
                        mount[i] = mount[k];
                        mount[k] = h;
                    } int h = mount[i]; h mount[i] mount i mount[i] = mount[k] mount[i] mount i mount[k] mount k mount[k] = h mount[k] mount k h for(int j = 0;j < 3; j++){
                System.out.println(mount[j]);
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                System.out.println(mount[j]);
            } {
                System.out.println(mount[j]);
            } System.out.println(mount[j]) System.out.println System.out System System.out mount[j] mount j String[] a a
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){
        }
    }
}