import java.util.*;

class Main{
    public static void main(String[] a){

        int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?

        Scanner s = new Scanner(System.in);
        for(int i = 0; i < h.length; i++){
            h[i] = s.nextInt();
        }

        Arrays.sort(h);

        for(int i = 9; i >= 7; i--){
            System.out.println(h[i]);
        }

    }
} import java.util.*; util.* java class Main{
    public static void main(String[] a){

        int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?

        Scanner s = new Scanner(System.in);
        for(int i = 0; i < h.length; i++){
            h[i] = s.nextInt();
        }

        Arrays.sort(h);

        for(int i = 9; i >= 7; i--){
            System.out.println(h[i]);
        }

    }
} Main public static void main(String[] a){

        int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?

        Scanner s = new Scanner(System.in);
        for(int i = 0; i < h.length; i++){
            h[i] = s.nextInt();
        }

        Arrays.sort(h);

        for(int i = 9; i >= 7; i--){
            System.out.println(h[i]);
        }

    } main {

        int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?

        Scanner s = new Scanner(System.in);
        for(int i = 0; i < h.length; i++){
            h[i] = s.nextInt();
        }

        Arrays.sort(h);

        for(int i = 9; i >= 7; i--){
            System.out.println(h[i]);
        }

    } int[] h = new int[10]; h new int[10] 10 Scanner s = new Scanner(System.in); s new Scanner(System.in) for(int i = 0; i < h.length; i++){
            h[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < h.length i h.length h h.length i++ i++ i {
            h[i] = s.nextInt();
        } {
            h[i] = s.nextInt();
        } h[i] = s.nextInt() h[i] h i s.nextInt() s.nextInt s Arrays.sort(h) Arrays.sort Arrays h for(int i = 9; i >= 7; i--){
            System.out.println(h[i]);
        } int i = 9; int i = 9; i 9 i >= 7 i 7 i-- i-- i {
            System.out.println(h[i]);
        } {
            System.out.println(h[i]);
        } System.out.println(h[i]) System.out.println System.out System System.out h[i] h i String[] a a
import java.util.*;

class Main{
    public static void main(String[] a){

        int[] h = new int[10]; //10??¶????????±?????\??????????????????????????£?¨?

        Scanner s = new Scanner(System.in);
        for(int i = 0; i < h.length; i++){
            h[i] = s.nextInt();
        }

        Arrays.sort(h);

        for(int i = 9; i >= 7; i--){
            System.out.println(h[i]);
        }

    }
}