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

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] top3 = new int[3];
        for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        }
        for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] top3 = new int[3];
        for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        }
        for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        }
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] top3 = new int[3];
        for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        }
        for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] top3 = new int[3];
        for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        }
        for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] top3 = new int[3]; top3 new int[3] 3 for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        } int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        } {
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        } try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            } catch (IOException e) {
            } IOException e {
            } {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } String line = br.readLine(); line br.readLine() br.readLine br if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                } line != null line null {
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                } int tmp = Integer.parseInt(line.trim()); tmp Integer.parseInt(line.trim()) Integer.parseInt Integer line.trim() line.trim line if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    } tmp>top3[0] tmp top3[0] top3 0 {
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } top3[2] = top3[1] top3[2] top3 2 top3[1] top3 1 top3[1] = top3[0] top3[1] top3 1 top3[0] top3 0 top3[0] = tmp top3[0] top3 0 tmp if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    } tmp>top3[1] tmp top3[1] top3 1 {
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } top3[2] = top3[1] top3[2] top3 2 top3[1] top3 1 top3[1] = tmp top3[1] top3 1 tmp if(tmp>top3[2]){
                        top3[2] = tmp;
                    } tmp>top3[2] tmp top3[2] top3 2 {
                        top3[2] = tmp;
                    } top3[2] = tmp top3[2] top3 2 tmp for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            System.out.println(top3[i]);
        } {
            System.out.println(top3[i]);
        } System.out.println(top3[i]) System.out.println System.out System System.out top3[i] top3 i String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] top3 = new int[3];
        for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        }
        for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        }
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] top3 = new int[3];
        for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        }
        for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] top3 = new int[3];
        for(int i=0; i<10; i++){
            try {
                String line = br.readLine();
                if(line != null){
                    int tmp = Integer.parseInt(line.trim());
                    if(tmp>top3[0]){
                        top3[2] = top3[1];
                        top3[1] = top3[0];
                        top3[0] = tmp;
                    } else if(tmp>top3[1]){
                        top3[2] = top3[1];
                        top3[1] = tmp;
                    } else if(tmp>top3[2]){
                        top3[2] = tmp;
                    }
                }
            } catch (IOException e) {
            }

        }
        for(int i=0; i<3; i++) {
            System.out.println(top3[i]);
        }
    }
}