import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] h = new int[10];
        for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        }
        Arrays.sort(h);
        System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] h = new int[10];
        for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        }
        Arrays.sort(h);
        System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] h = new int[10];
        for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        }
        Arrays.sort(h);
        System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]);
    } main {
        Scanner sc = new Scanner(System.in);
        int[] h = new int[10];
        for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        }
        Arrays.sort(h);
        System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] h = new int[10]; h new int[10] 10 for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            h[i] = sc.nextInt();
        } {
            h[i] = sc.nextInt();
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc Arrays.sort(h) Arrays.sort Arrays h System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]) System.out.printf System.out System System.out "%d\n%d\n%d\n" h[9] h 9 h[8] h 8 h[7] h 7 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] h = new int[10];
        for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        }
        Arrays.sort(h);
        System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] h = new int[10];
        for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        }
        Arrays.sort(h);
        System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]);
    }
} Main
import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] h = new int[10];
        for(int i = 0; i < 10; i++){
            h[i] = sc.nextInt();
        }
        Arrays.sort(h);
        System.out.printf("%d\n%d\n%d\n", h[9], h[8], h[7]);
    }
}