import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int datas[] = new int[10];
        for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        }
        Arrays.sort(datas);
        for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int datas[] = new int[10];
        for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        }
        Arrays.sort(datas);
        for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int datas[] = new int[10];
        for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        }
        Arrays.sort(datas);
        for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        }
    } main {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int datas[] = new int[10];
        for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        }
        Arrays.sort(datas);
        for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int datas[] = new int[10]; datas new int[10] 10 for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            datas[i] =  Integer.parseInt(br.readLine());
        } {
            datas[i] =  Integer.parseInt(br.readLine());
        } datas[i] =  Integer.parseInt(br.readLine()) datas[i] datas i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(datas) Arrays.sort Arrays datas for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        } int i = 1; int i = 1; i 1 i <= 3 i 3 i++ i++ i {
            System.out.println(datas[10 - i]);
        } {
            System.out.println(datas[10 - i]);
        } System.out.println(datas[10 - i]) System.out.println System.out System System.out datas[10 - i] datas 10 - i 10 i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int datas[] = new int[10];
        for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        }
        Arrays.sort(datas);
        for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int datas[] = new int[10];
        for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        }
        Arrays.sort(datas);
        for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int datas[] = new int[10];
        for(int i = 0;i < 10;i++){
            datas[i] =  Integer.parseInt(br.readLine());
        }
        Arrays.sort(datas);
        for(int i = 1;i <= 3;i++){
            System.out.println(datas[10 - i]);
        }
    }
}