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

class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);
        int[] inputs = new int[10];

        for(int i = 0; i < 10; i++){
            inputs[i] = s.nextInt();
        }

        Arrays.sort(inputs);

        System.out.println(inputs[9]);
        System.out.println(inputs[8]);
        System.out.println(inputs[7]);
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);
        int[] inputs = new int[10];

        for(int i = 0; i < 10; i++){
            inputs[i] = s.nextInt();
        }

        Arrays.sort(inputs);

        System.out.println(inputs[9]);
        System.out.println(inputs[8]);
        System.out.println(inputs[7]);
    }
} Main public static void main(String[] a){
        Scanner s = new Scanner(System.in);
        int[] inputs = new int[10];

        for(int i = 0; i < 10; i++){
            inputs[i] = s.nextInt();
        }

        Arrays.sort(inputs);

        System.out.println(inputs[9]);
        System.out.println(inputs[8]);
        System.out.println(inputs[7]);
    } main {
        Scanner s = new Scanner(System.in);
        int[] inputs = new int[10];

        for(int i = 0; i < 10; i++){
            inputs[i] = s.nextInt();
        }

        Arrays.sort(inputs);

        System.out.println(inputs[9]);
        System.out.println(inputs[8]);
        System.out.println(inputs[7]);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int[] inputs = new int[10]; inputs new int[10] 10 for(int i = 0; i < 10; i++){
            inputs[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            inputs[i] = s.nextInt();
        } {
            inputs[i] = s.nextInt();
        } inputs[i] = s.nextInt() inputs[i] inputs i s.nextInt() s.nextInt s Arrays.sort(inputs) Arrays.sort Arrays inputs System.out.println(inputs[9]) System.out.println System.out System System.out inputs[9] inputs 9 System.out.println(inputs[8]) System.out.println System.out System System.out inputs[8] inputs 8 System.out.println(inputs[7]) System.out.println System.out System System.out inputs[7] inputs 7 String[] a a
import java.util.Scanner;
import java.util.Arrays;

class Main{
    public static void main(String[] a){
        Scanner s = new Scanner(System.in);
        int[] inputs = new int[10];

        for(int i = 0; i < 10; i++){
            inputs[i] = s.nextInt();
        }

        Arrays.sort(inputs);

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