import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.System;
import java.lang.reflect.Array;
import java.util.Arrays;

class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        int[] mountains = new int[10];
        for(int i = 0; i < 10; i++) {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        }

        Arrays.sort(mountains);
        for(int i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.lang.System; System java.lang import java.lang.reflect.Array; Array java.lang.reflect import java.util.Arrays; Arrays java.util class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        int[] mountains = new int[10];
        for(int i = 0; i < 10; i++) {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        }

        Arrays.sort(mountains);
        for(int i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
    }
} Main public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        int[] mountains = new int[10];
        for(int i = 0; i < 10; i++) {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        }

        Arrays.sort(mountains);
        for(int i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
    } main {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        int[] mountains = new int[10];
        for(int i = 0; i < 10; i++) {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        }

        Arrays.sort(mountains);
        for(int i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
    } BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) int[] mountains = new int[10]; mountains new int[10] 10 for(int i = 0; i < 10; i++) {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        } {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        } int tmp = Integer.parseInt(r.readLine()); tmp Integer.parseInt(r.readLine()) Integer.parseInt Integer r.readLine() r.readLine r mountains[i] = tmp mountains[i] mountains i tmp Arrays.sort(mountains) Arrays.sort Arrays mountains for(int i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        } int i = 9; int i = 9; i 9 i > 6 i 6 i-- i-- i {
            System.out.println(mountains[i]);
        } {
            System.out.println(mountains[i]);
        } System.out.println(mountains[i]) System.out.println System.out System System.out mountains[i] mountains i String[] a a
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.System;
import java.lang.reflect.Array;
import java.util.Arrays;

class Main {
    public static void main(String[] a) throws Exception {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

        int[] mountains = new int[10];
        for(int i = 0; i < 10; i++) {
            int tmp = Integer.parseInt(r.readLine());
            mountains[i] = tmp;
        }

        Arrays.sort(mountains);
        for(int i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
    }
}