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

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);

        for (int i=9;i>6;i--) {
            System.out.println(h[i]);
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner 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);

        for (int i=9;i>6;i--) {
            System.out.println(h[i]);
        }
    }
} 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);

        for (int i=9;i>6;i--) {
            System.out.println(h[i]);
        }
    } 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);

        for (int i=9;i>6;i--) {
            System.out.println(h[i]);
        }
    } 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 for (int i=9;i>6;i--) {
            System.out.println(h[i]);
        } int i=9; int i=9; i 9 i>6 i 6 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... 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);

        for (int i=9;i>6;i--) {
            System.out.println(h[i]);
        }
    }
} 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);

        for (int i=9;i>6;i--) {
            System.out.println(h[i]);
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

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);

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