import java.util.Arrays;
//List of Top 3 Hills
import java.util.Scanner;

class Main{
    public static void main(String[] a){
        Scanner sc = new Scanner(System.in);
        int hight[];
        hight = new int[10];
        
//        System.out.println("hight.length="+hight.length);
        for(int i=0; i<hight.length; i++) {
            hight[i]=sc.nextInt();
        }
//        System.out.println("in end");
        Arrays.sort(hight);

        for(int i=0; i<3; i++) {
            System.out.println(hight[(hight.length-1-i)]);
        }

    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] a){
        Scanner sc = new Scanner(System.in);
        int hight[];
        hight = new int[10];
        
//        System.out.println("hight.length="+hight.length);
        for(int i=0; i<hight.length; i++) {
            hight[i]=sc.nextInt();
        }
//        System.out.println("in end");
        Arrays.sort(hight);

        for(int i=0; i<3; i++) {
            System.out.println(hight[(hight.length-1-i)]);
        }

    }
} Main public static void main(String[] a){
        Scanner sc = new Scanner(System.in);
        int hight[];
        hight = new int[10];
        
//        System.out.println("hight.length="+hight.length);
        for(int i=0; i<hight.length; i++) {
            hight[i]=sc.nextInt();
        }
//        System.out.println("in end");
        Arrays.sort(hight);

        for(int i=0; i<3; i++) {
            System.out.println(hight[(hight.length-1-i)]);
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int hight[];
        hight = new int[10];
        
//        System.out.println("hight.length="+hight.length);
        for(int i=0; i<hight.length; i++) {
            hight[i]=sc.nextInt();
        }
//        System.out.println("in end");
        Arrays.sort(hight);

        for(int i=0; i<3; i++) {
            System.out.println(hight[(hight.length-1-i)]);
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int hight[]; hight hight = new int[10] hight new int[10] 10 for(int i=0; i<hight.length; i++) {
            hight[i]=sc.nextInt();
        } int i=0; int i=0; i 0 i<hight.length i hight.length hight hight.length i++ i++ i {
            hight[i]=sc.nextInt();
        } {
            hight[i]=sc.nextInt();
        } hight[i]=sc.nextInt() hight[i] hight i sc.nextInt() sc.nextInt sc Arrays.sort(hight) Arrays.sort Arrays hight for(int i=0; i<3; i++) {
            System.out.println(hight[(hight.length-1-i)]);
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            System.out.println(hight[(hight.length-1-i)]);
        } {
            System.out.println(hight[(hight.length-1-i)]);
        } System.out.println(hight[(hight.length-1-i)]) System.out.println System.out System System.out hight[(hight.length-1-i)] hight (hight.length-1-i) hight.length-1-i hight.length hight hight.length 1 i String[] a a
import java.util.Arrays;
//List of Top 3 Hills
import java.util.Scanner;

class Main{
    public static void main(String[] a){
        Scanner sc = new Scanner(System.in);
        int hight[];
        hight = new int[10];
        
//        System.out.println("hight.length="+hight.length);
        for(int i=0; i<hight.length; i++) {
            hight[i]=sc.nextInt();
        }
//        System.out.println("in end");
        Arrays.sort(hight);

        for(int i=0; i<3; i++) {
            System.out.println(hight[(hight.length-1-i)]);
        }

    }
}