import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        Integer[] mountains = new Integer[10];
        for (int i = 0; i < 10; i++) {
            mountains[i] = sc.nextInt();
        }

        Arrays.sort(mountains, Collections.reverseOrder());

        StringBuilder sb = new StringBuilder("");
        for (int i = 0; i < 3; i++) {
            sb.append(mountains[i]);
            sb.append('\n');
        }
        System.out.print(sb);
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util class Main {
    public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        Integer[] mountains = new Integer[10];
        for (int i = 0; i < 10; i++) {
            mountains[i] = sc.nextInt();
        }

        Arrays.sort(mountains, Collections.reverseOrder());

        StringBuilder sb = new StringBuilder("");
        for (int i = 0; i < 3; i++) {
            sb.append(mountains[i]);
            sb.append('\n');
        }
        System.out.print(sb);
    }
} Main public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        Integer[] mountains = new Integer[10];
        for (int i = 0; i < 10; i++) {
            mountains[i] = sc.nextInt();
        }

        Arrays.sort(mountains, Collections.reverseOrder());

        StringBuilder sb = new StringBuilder("");
        for (int i = 0; i < 3; i++) {
            sb.append(mountains[i]);
            sb.append('\n');
        }
        System.out.print(sb);
    } main {
        Scanner sc = new Scanner(System.in);
        Integer[] mountains = new Integer[10];
        for (int i = 0; i < 10; i++) {
            mountains[i] = sc.nextInt();
        }

        Arrays.sort(mountains, Collections.reverseOrder());

        StringBuilder sb = new StringBuilder("");
        for (int i = 0; i < 3; i++) {
            sb.append(mountains[i]);
            sb.append('\n');
        }
        System.out.print(sb);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer[] mountains = new Integer[10]; mountains new Integer[10] 10 for (int i = 0; i < 10; i++) {
            mountains[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            mountains[i] = sc.nextInt();
        } {
            mountains[i] = sc.nextInt();
        } mountains[i] = sc.nextInt() mountains[i] mountains i sc.nextInt() sc.nextInt sc Arrays.sort(mountains, Collections.reverseOrder()) Arrays.sort Arrays mountains Collections.reverseOrder() Collections.reverseOrder Collections StringBuilder sb = new StringBuilder(""); sb new StringBuilder("") for (int i = 0; i < 3; i++) {
            sb.append(mountains[i]);
            sb.append('\n');
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            sb.append(mountains[i]);
            sb.append('\n');
        } {
            sb.append(mountains[i]);
            sb.append('\n');
        } sb.append(mountains[i]) sb.append sb mountains[i] mountains i sb.append('\n') sb.append sb '\n' System.out.print(sb) System.out.print System.out System System.out sb String[] args args
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main (String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        Integer[] mountains = new Integer[10];
        for (int i = 0; i < 10; i++) {
            mountains[i] = sc.nextInt();
        }

        Arrays.sort(mountains, Collections.reverseOrder());

        StringBuilder sb = new StringBuilder("");
        for (int i = 0; i < 3; i++) {
            sb.append(mountains[i]);
            sb.append('\n');
        }
        System.out.print(sb);
    }
}