
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 NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		int[] yama = new int[10];
		for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		}
		Arrays.sort(yama);
		for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		}
		System.out.print(builder);
	}
} 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 NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		int[] yama = new int[10];
		for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		}
		Arrays.sort(yama);
		for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		}
		System.out.print(builder);
	}
} Main public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		int[] yama = new int[10];
		for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		}
		Arrays.sort(yama);
		for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		}
		System.out.print(builder);
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		int[] yama = new int[10];
		for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		}
		Arrays.sort(yama);
		for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		}
		System.out.print(builder);
	} BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in)); reader new BufferedReader(new InputStreamReader(
				System.in)) StringBuilder builder = new StringBuilder(); builder new StringBuilder() int[] yama = new int[10]; yama new int[10] 10 for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			yama[i] = Integer.parseInt(reader.readLine());
		} {
			yama[i] = Integer.parseInt(reader.readLine());
		} yama[i] = Integer.parseInt(reader.readLine()) yama[i] yama i Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader Arrays.sort(yama) Arrays.sort Arrays yama for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		} int i = 9; int i = 9; i 9 i > 6 i 6 i-- i-- i {
			builder.append(yama[i]).append('\n');
		} {
			builder.append(yama[i]).append('\n');
		} builder.append(yama[i]).append('\n') builder.append(yama[i]).append builder.append(yama[i]) builder.append builder yama[i] yama i '\n' System.out.print(builder) System.out.print System.out System System.out builder String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		int[] yama = new int[10];
		for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		}
		Arrays.sort(yama);
		for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		}
		System.out.print(builder);
	}
} public class Main {

	public static void main(String[] args) throws NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		int[] yama = new int[10];
		for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		}
		Arrays.sort(yama);
		for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		}
		System.out.print(builder);
	}
} 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 NumberFormatException,
			IOException {
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		StringBuilder builder = new StringBuilder();
		int[] yama = new int[10];
		for (int i = 0; i < 10; i++) {
			yama[i] = Integer.parseInt(reader.readLine());
		}
		Arrays.sort(yama);
		for (int i = 9; i > 6; i--) {
			builder.append(yama[i]).append('\n');
		}
		System.out.print(builder);
	}
}