import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;

class Main {
	public static void main(String[] a) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer[] mountains = new Integer[10];
		for (int i = 0; i < 10; i++) {
			mountains[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(mountains, Collections.reverseOrder());
		for (int i = 0; i < 3; i++)
			System.out.println(mountains[i]);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util class Main {
	public static void main(String[] a) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer[] mountains = new Integer[10];
		for (int i = 0; i < 10; i++) {
			mountains[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(mountains, Collections.reverseOrder());
		for (int i = 0; i < 3; i++)
			System.out.println(mountains[i]);
	}
} Main public static void main(String[] a) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer[] mountains = new Integer[10];
		for (int i = 0; i < 10; i++) {
			mountains[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(mountains, Collections.reverseOrder());
		for (int i = 0; i < 3; i++)
			System.out.println(mountains[i]);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer[] mountains = new Integer[10];
		for (int i = 0; i < 10; i++) {
			mountains[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(mountains, Collections.reverseOrder());
		for (int i = 0; i < 3; i++)
			System.out.println(mountains[i]);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer[] mountains = new Integer[10]; mountains new Integer[10] 10 for (int i = 0; i < 10; i++) {
			mountains[i] = Integer.parseInt(br.readLine());
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			mountains[i] = Integer.parseInt(br.readLine());
		} {
			mountains[i] = Integer.parseInt(br.readLine());
		} mountains[i] = Integer.parseInt(br.readLine()) mountains[i] mountains i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(mountains, Collections.reverseOrder()) Arrays.sort Arrays mountains Collections.reverseOrder() Collections.reverseOrder Collections for (int i = 0; i < 3; i++)
			System.out.println(mountains[i]); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i System.out.println(mountains[i]); System.out.println(mountains[i]) System.out.println System.out System System.out mountains[i] mountains i String[] a a
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;

class Main {
	public static void main(String[] a) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer[] mountains = new Integer[10];
		for (int i = 0; i < 10; i++) {
			mountains[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(mountains, Collections.reverseOrder());
		for (int i = 0; i < 3; i++)
			System.out.println(mountains[i]);
	}
}