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

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

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