import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.String;
import java.lang.System;
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];
        int i = 0;
        while (true) {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(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.Exception; Exception java.lang import java.lang.Integer; Integer java.lang import java.lang.String; String java.lang import java.lang.System; System java.lang 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];
        int i = 0;
        while (true) {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(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];
        int i = 0;
        while (true) {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
    } main {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int [] mountains = new int[10];
        int i = 0;
        while (true) {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(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 int i = 0; i 0 while (true) {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        } true {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        } String s = r.readLine(); s r.readLine() r.readLine r mountains[i++] = Integer.valueOf(s) mountains[i++] mountains i++ i Integer.valueOf(s) Integer.valueOf Integer s if(i >= 10) break; i >= 10 i 10 break; Arrays.sort(mountains) Arrays.sort Arrays mountains for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        } i = 9; 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.Exception;
import java.lang.Integer;
import java.lang.String;
import java.lang.System;
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];
        int i = 0;
        while (true) {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
    }
}