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

/**
 * Created by hwzheng on 2016/12/13.
 */
public class Main {
    public static void main(String[] a) {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        }
        Arrays.sort(heights);
        for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] a) {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        }
        Arrays.sort(heights);
        for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        }
    }
} Main public static void main(String[] a) {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        }
        Arrays.sort(heights);
        for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        }
        Arrays.sort(heights);
        for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int[] heights = new int[10]; heights new int[10] 10 for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            heights[i] = scanner.nextInt();
        } {
            heights[i] = scanner.nextInt();
        } heights[i] = scanner.nextInt() heights[i] heights i scanner.nextInt() scanner.nextInt scanner Arrays.sort(heights) Arrays.sort Arrays heights for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        } int i = 0; int i = 0; i 0 i <3 i 3 i++ i++ i {
            System.out.println(heights[9-i]);
        } {
            System.out.println(heights[9-i]);
        } System.out.println(heights[9-i]) System.out.println System.out System System.out heights[9-i] heights 9-i 9 i String[] a a public class Main {
    public static void main(String[] a) {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        }
        Arrays.sort(heights);
        for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        }
    }
} public class Main {
    public static void main(String[] a) {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        }
        Arrays.sort(heights);
        for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

/**
 * Created by hwzheng on 2016/12/13.
 */
public class Main {
    public static void main(String[] a) {
        Scanner scanner = new Scanner(System.in);
        int[] heights = new int[10];
        for (int i = 0; i < 10; i++){
            heights[i] = scanner.nextInt();
        }
        Arrays.sort(heights);
        for (int i = 0;i <3; i++){
            System.out.println(heights[9-i]);
        }
    }
}