import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int []height = new int[10];
        for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        }
        Arrays.sort(height);
        for (int j=9;6<j;j--){
            System.out.println(height[j]);
        }

    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int []height = new int[10];
        for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        }
        Arrays.sort(height);
        for (int j=9;6<j;j--){
            System.out.println(height[j]);
        }

    }
} Main public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int []height = new int[10];
        for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        }
        Arrays.sort(height);
        for (int j=9;6<j;j--){
            System.out.println(height[j]);
        }

    } main {
        Scanner sc =new Scanner(System.in);
        int []height = new int[10];
        for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        }
        Arrays.sort(height);
        for (int j=9;6<j;j--){
            System.out.println(height[j]);
        }

    } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int []height = new int[10]; height new int[10] 10 for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        } int i =0; int i =0; i 0 i<height.length i height.length height height.length i++ i++ i {
            height[i]=sc.nextInt();
           
        } {
            height[i]=sc.nextInt();
           
        } height[i]=sc.nextInt() height[i] height i sc.nextInt() sc.nextInt sc Arrays.sort(height) Arrays.sort Arrays height for (int j=9;6<j;j--){
            System.out.println(height[j]);
        } int j=9; int j=9; j 9 6<j 6 j j-- j-- j {
            System.out.println(height[j]);
        } {
            System.out.println(height[j]);
        } System.out.println(height[j]) System.out.println System.out System System.out height[j] height j String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int []height = new int[10];
        for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        }
        Arrays.sort(height);
        for (int j=9;6<j;j--){
            System.out.println(height[j]);
        }

    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int []height = new int[10];
        for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        }
        Arrays.sort(height);
        for (int j=9;6<j;j--){
            System.out.println(height[j]);
        }

    }
} Main
import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int []height = new int[10];
        for(int i =0;i<height.length;i++){
            height[i]=sc.nextInt();
           
        }
        Arrays.sort(height);
        for (int j=9;6<j;j--){
            System.out.println(height[j]);
        }

    }
}