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

public class Main {
	public static void main(String[] a) {
		int[] takasa = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]);
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] a) {
		int[] takasa = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]);
	}

} Main public static void main(String[] a) {
		int[] takasa = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]);
	} main {
		int[] takasa = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]);
	} int[] takasa = new int[10]; takasa new int[10] 10 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {

			takasa[i] = Integer.valueOf(scan.next());
		} {

			takasa[i] = Integer.valueOf(scan.next());
		} takasa[i] = Integer.valueOf(scan.next()) takasa[i] takasa i Integer.valueOf(scan.next()) Integer.valueOf Integer scan.next() scan.next scan Arrays.sort(takasa) Arrays.sort Arrays takasa for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]); int i = 9; int i = 9; i 9 i > 6 i 6 i-- i-- i System.out.println(takasa[i]); System.out.println(takasa[i]) System.out.println System.out System System.out takasa[i] takasa i String[] a a public class Main {
	public static void main(String[] a) {
		int[] takasa = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]);
	}

} public class Main {
	public static void main(String[] a) {
		int[] takasa = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]);
	}

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

public class Main {
	public static void main(String[] a) {
		int[] takasa = new int[10];
		Scanner scan = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {

			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for (int i = 9; i > 6; i--)
			System.out.println(takasa[i]);
	}

}