import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        }
        sc.close();

        Arrays.sort(array);

        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    }

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        }
        sc.close();

        Arrays.sort(array);

        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    }

} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        }
        sc.close();

        Arrays.sort(array);

        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    } main {

        Scanner sc = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        }
        sc.close();

        Arrays.sort(array);

        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] array = new int[10]; array new int[10] 10 for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        } int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
            array[i] = Integer.parseInt(sc.nextLine());
        } {
            array[i] = Integer.parseInt(sc.nextLine());
        } array[i] = Integer.parseInt(sc.nextLine()) array[i] array i Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc sc.close() sc.close sc Arrays.sort(array) Arrays.sort Arrays array System.out.println(array[9]) System.out.println System.out System System.out array[9] array 9 System.out.println(array[8]) System.out.println System.out System System.out array[8] array 8 System.out.println(array[7]) System.out.println System.out System System.out array[7] array 7 String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        }
        sc.close();

        Arrays.sort(array);

        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    }

} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        }
        sc.close();

        Arrays.sort(array);

        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    }

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = Integer.parseInt(sc.nextLine());
        }
        sc.close();

        Arrays.sort(array);

        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    }

}