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

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

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] a) {
		int i[] = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int j = 0; j < i.length; j++) {
			i[j] = scan.nextInt();
		}
		Arrays.sort(i);
		for (int k = 9; k >= 7; k--) {
			System.out.println(i[k]);
		}
	}

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

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

} Main
import java.util.Arrays;
import java.util.Scanner;

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

}