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

public class Main {

	public static void main (String[] args) {

		Integer[] mountainHigh = new Integer[10];
		Scanner stdin = new Scanner(System.in);
		for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		}
		Arrays.sort(mountainHigh,Comparator.reverseOrder());

		for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		}

	}

} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main (String[] args) {

		Integer[] mountainHigh = new Integer[10];
		Scanner stdin = new Scanner(System.in);
		for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		}
		Arrays.sort(mountainHigh,Comparator.reverseOrder());

		for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		}

	}

} Main public static void main (String[] args) {

		Integer[] mountainHigh = new Integer[10];
		Scanner stdin = new Scanner(System.in);
		for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		}
		Arrays.sort(mountainHigh,Comparator.reverseOrder());

		for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		}

	} main {

		Integer[] mountainHigh = new Integer[10];
		Scanner stdin = new Scanner(System.in);
		for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		}
		Arrays.sort(mountainHigh,Comparator.reverseOrder());

		for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		}

	} Integer[] mountainHigh = new Integer[10]; mountainHigh new Integer[10] 10 Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			mountainHigh[i] = stdin.nextInt();
		} {
			mountainHigh[i] = stdin.nextInt();
		} mountainHigh[i] = stdin.nextInt() mountainHigh[i] mountainHigh i stdin.nextInt() stdin.nextInt stdin Arrays.sort(mountainHigh,Comparator.reverseOrder()) Arrays.sort Arrays mountainHigh Comparator.reverseOrder() Comparator.reverseOrder Comparator for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		} int high = 0; int high = 0; high 0 high < 3 high 3 high++ high++ high {
			System.out.println(mountainHigh[high]);
		} {
			System.out.println(mountainHigh[high]);
		} System.out.println(mountainHigh[high]) System.out.println System.out System System.out mountainHigh[high] mountainHigh high String[] args args public class Main {

	public static void main (String[] args) {

		Integer[] mountainHigh = new Integer[10];
		Scanner stdin = new Scanner(System.in);
		for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		}
		Arrays.sort(mountainHigh,Comparator.reverseOrder());

		for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		}

	}

} public class Main {

	public static void main (String[] args) {

		Integer[] mountainHigh = new Integer[10];
		Scanner stdin = new Scanner(System.in);
		for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		}
		Arrays.sort(mountainHigh,Comparator.reverseOrder());

		for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		}

	}

} Main

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

public class Main {

	public static void main (String[] args) {

		Integer[] mountainHigh = new Integer[10];
		Scanner stdin = new Scanner(System.in);
		for(int i = 0; i < 10; i++) {
			mountainHigh[i] = stdin.nextInt();
		}
		Arrays.sort(mountainHigh,Comparator.reverseOrder());

		for(int high = 0; high < 3; high++) {
			System.out.println(mountainHigh[high]);
		}

	}

}