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

class Main {
	public static void main(String[] a) {
		Scanner sc = new Scanner(System.in);
		int array[] = new int[10];

		for(int i = 0; i < 10; i++) {
			array[i] = sc.nextInt();
		}

		Arrays.sort(array);

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

		for(int i = 0; i < 10; i++) {
			array[i] = sc.nextInt();
		}

		Arrays.sort(array);

		for(int i = 9; i > 6; i--) {
			System.out.println(array[i]);
		}
	}
} Main public static void main(String[] a) {
		Scanner sc = new Scanner(System.in);
		int array[] = new int[10];

		for(int i = 0; i < 10; i++) {
			array[i] = sc.nextInt();
		}

		Arrays.sort(array);

		for(int i = 9; i > 6; i--) {
			System.out.println(array[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int array[] = new int[10];

		for(int i = 0; i < 10; i++) {
			array[i] = sc.nextInt();
		}

		Arrays.sort(array);

		for(int i = 9; i > 6; i--) {
			System.out.println(array[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int array[] = new int[10]; array new int[10] 10 for(int i = 0; i < 10; i++) {
			array[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			array[i] = sc.nextInt();
		} {
			array[i] = sc.nextInt();
		} array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc Arrays.sort(array) Arrays.sort Arrays array for(int i = 9; i > 6; i--) {
			System.out.println(array[i]);
		} int i = 9; int i = 9; i 9 i > 6 i 6 i-- i-- i {
			System.out.println(array[i]);
		} {
			System.out.println(array[i]);
		} System.out.println(array[i]) System.out.println System.out System System.out array[i] array 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 array[] = new int[10];

		for(int i = 0; i < 10; i++) {
			array[i] = sc.nextInt();
		}

		Arrays.sort(array);

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