import java.util.Arrays;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        }
        Arrays.sort(arr);
        System.out.println(arr[9]);
        System.out.println(arr[8]);
        System.out.println(arr[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 scan = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        }
        Arrays.sort(arr);
        System.out.println(arr[9]);
        System.out.println(arr[8]);
        System.out.println(arr[7]);

    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        }
        Arrays.sort(arr);
        System.out.println(arr[9]);
        System.out.println(arr[8]);
        System.out.println(arr[7]);

    } main {
        Scanner scan = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        }
        Arrays.sort(arr);
        System.out.println(arr[9]);
        System.out.println(arr[8]);
        System.out.println(arr[7]);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] arr = new int[10]; arr new int[10] 10 for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        } int i =0; int i =0; i 0 i< 10 i 10 i++ i++ i {
            int a = scan.nextInt();
            arr[i] = a;
        } {
            int a = scan.nextInt();
            arr[i] = a;
        } int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan arr[i] = a arr[i] arr i a Arrays.sort(arr) Arrays.sort Arrays arr System.out.println(arr[9]) System.out.println System.out System System.out arr[9] arr 9 System.out.println(arr[8]) System.out.println System.out System System.out arr[8] arr 8 System.out.println(arr[7]) System.out.println System.out System System.out arr[7] arr 7 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        }
        Arrays.sort(arr);
        System.out.println(arr[9]);
        System.out.println(arr[8]);
        System.out.println(arr[7]);

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        }
        Arrays.sort(arr);
        System.out.println(arr[9]);
        System.out.println(arr[8]);
        System.out.println(arr[7]);

    }
} Main
import java.util.Arrays;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i =0; i< 10; i++){
            int a = scan.nextInt();
            arr[i] = a;
        }
        Arrays.sort(arr);
        System.out.println(arr[9]);
        System.out.println(arr[8]);
        System.out.println(arr[7]);

    }
}