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

class Main {
	public static void main(String[] a) {
		Scanner sc = new Scanner(System.in);
		int[] mountainHigh = new int[10];
		for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		}
		Arrays.sort(mountainHigh);
		for (int i = 9; i > 9 - 3; i --) {
			System.out.println(mountainHigh[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[] mountainHigh = new int[10];
		for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		}
		Arrays.sort(mountainHigh);
		for (int i = 9; i > 9 - 3; i --) {
			System.out.println(mountainHigh[i]);
		}
	}
} Main public static void main(String[] a) {
		Scanner sc = new Scanner(System.in);
		int[] mountainHigh = new int[10];
		for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		}
		Arrays.sort(mountainHigh);
		for (int i = 9; i > 9 - 3; i --) {
			System.out.println(mountainHigh[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int[] mountainHigh = new int[10];
		for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		}
		Arrays.sort(mountainHigh);
		for (int i = 9; i > 9 - 3; i --) {
			System.out.println(mountainHigh[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] mountainHigh = new int[10]; mountainHigh new int[10] 10 for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			mountainHigh[i] = sc.nextInt();
		} {
			mountainHigh[i] = sc.nextInt();
		} mountainHigh[i] = sc.nextInt() mountainHigh[i] mountainHigh i sc.nextInt() sc.nextInt sc Arrays.sort(mountainHigh) Arrays.sort Arrays mountainHigh for (int i = 9; i > 9 - 3; i --) {
			System.out.println(mountainHigh[i]);
		} int i = 9; int i = 9; i 9 i > 9 - 3 i 9 - 3 9 3 i -- i -- i {
			System.out.println(mountainHigh[i]);
		} {
			System.out.println(mountainHigh[i]);
		} System.out.println(mountainHigh[i]) System.out.println System.out System System.out mountainHigh[i] mountainHigh i String[] a a
import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static void main(String[] a) {
		Scanner sc = new Scanner(System.in);
		int[] mountainHigh = new int[10];
		for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		}
		Arrays.sort(mountainHigh);
		for (int i = 9; i > 9 - 3; i --) {
			System.out.println(mountainHigh[i]);
		}
	}
}