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

public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int[] mountHill = new int[10];

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

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		}
		Arrays.sort(mountHill);

		System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]);
	}

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

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int[] mountHill = new int[10];

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

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		}
		Arrays.sort(mountHill);

		System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]);
	}

} Main public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int[] mountHill = new int[10];

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

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		}
		Arrays.sort(mountHill);

		System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]);
	} main {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int[] mountHill = new int[10];

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

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		}
		Arrays.sort(mountHill);

		System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]);
	} @SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] mountHill = new int[10]; mountHill new int[10] 10 for (int i = 0; i < 10; i++) {
			mountHill[i] = sc.nextInt();

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			mountHill[i] = sc.nextInt();

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		} {
			mountHill[i] = sc.nextInt();

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		} mountHill[i] = sc.nextInt() mountHill[i] mountHill i sc.nextInt() sc.nextInt sc if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			} mountHill[i] > 10000 || mountHill[i] < 0 mountHill[i] > 10000 mountHill[i] mountHill i 10000 mountHill[i] < 0 mountHill[i] mountHill i 0 {
				System.out.println("error");
			} System.out.println("error") System.out.println System.out System System.out "error" Arrays.sort(mountHill) Arrays.sort Arrays mountHill System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]) System.out.println System.out System System.out mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7] "\n" mountHill[8] mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7] mountHill[9] mountHill 9 "\n" mountHill[8] mountHill 8 "\n" mountHill[7] mountHill 7 String[] args args public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int[] mountHill = new int[10];

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

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		}
		Arrays.sort(mountHill);

		System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]);
	}

} public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int[] mountHill = new int[10];

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

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		}
		Arrays.sort(mountHill);

		System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]);
	}

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

public class Main {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int[] mountHill = new int[10];

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

			if (mountHill[i] > 10000 || mountHill[i] < 0) {
				System.out.println("error");
			}
		}
		Arrays.sort(mountHill);

		System.out.println(mountHill[9] + "\n" + mountHill[8] + "\n"
				+ mountHill[7]);
	}

}