import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		}

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		}

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		}

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		} {
			br.close();
		} br.close() br.close br {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} int[] height = new int[10]; height new int[10] 10 for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {

				height[i] = Integer.parseInt(br.readLine());

			} {

				height[i] = Integer.parseInt(br.readLine());

			} height[i] = Integer.parseInt(br.readLine()) height[i] height i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(height) Arrays.sort Arrays height for (int j = 9; j > 6; j--) {
				System.out.println(height[j]);
			} int j = 9; int j = 9; j 9 j > 6 j 6 j-- j-- j {
				System.out.println(height[j]);
			} {
				System.out.println(height[j]);
			} System.out.println(height[j]) System.out.println System.out System System.out height[j] height j String[] args args public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		}

	}
} public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		}

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {

			int[] height = new int[10];

			for (int i = 0; i < 10; i++) {

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

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

		} finally {
			br.close();
		}

	}
}