import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] data = new int[10];

        for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        }
        for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        }
        for(int i=0; i<3; i++){
            System.out.println(data[i]);
        }
    }
} import java.io.*; io.* java public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] data = new int[10];

        for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        }
        for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        }
        for(int i=0; i<3; i++){
            System.out.println(data[i]);
        }
    }
} Main public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] data = new int[10];

        for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        }
        for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        }
        for(int i=0; i<3; i++){
            System.out.println(data[i]);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] data = new int[10];

        for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        }
        for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        }
        for(int i=0; i<3; i++){
            System.out.println(data[i]);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] data = new int[10]; data new int[10] 10 for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        } int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
            data[i] = Integer.parseInt(br.readLine());
        } {
            data[i] = Integer.parseInt(br.readLine());
        } data[i] = Integer.parseInt(br.readLine()) data[i] data i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        } {
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        } int maxIndex = i; maxIndex i for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            } int k=i+1; int k=i+1; k i+1 i 1 k<10 k 10 k++ k++ k {
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            } {
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            } if(data[maxIndex] < data[k]){
                    maxIndex = k;
                } data[maxIndex] < data[k] data[maxIndex] data maxIndex data[k] data k {
                    maxIndex = k;
                } maxIndex = k maxIndex k int tmp = data[maxIndex]; tmp data[maxIndex] data maxIndex data[maxIndex] = data[i] data[maxIndex] data maxIndex data[i] data i data[i] = tmp data[i] data i tmp for(int i=0; i<3; i++){
            System.out.println(data[i]);
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            System.out.println(data[i]);
        } {
            System.out.println(data[i]);
        } System.out.println(data[i]) System.out.println System.out System System.out data[i] data i String[]args args public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] data = new int[10];

        for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        }
        for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        }
        for(int i=0; i<3; i++){
            System.out.println(data[i]);
        }
    }
} public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] data = new int[10];

        for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        }
        for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        }
        for(int i=0; i<3; i++){
            System.out.println(data[i]);
        }
    }
} Main
import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] data = new int[10];

        for(int i=0; i<10; i++){
            data[i] = Integer.parseInt(br.readLine());
        }
        for(int i=0; i<3; i++){
            int maxIndex = i;
            for(int k=i+1; k<10; k++){
                if(data[maxIndex] < data[k]){
                    maxIndex = k;
                }
            }
            int tmp = data[maxIndex];
            data[maxIndex] = data[i];
            data[i] = tmp;
        }
        for(int i=0; i<3; i++){
            System.out.println(data[i]);
        }
    }
}