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

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));

		Integer[] hList = new Integer[10];
		for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		}

		Arrays.sort(hList, Collections.reverseOrder());

		for (int rank = 0; rank < 3; rank++) {
			System.out.println(hList[rank]);
		}
	}
} 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 import java.util.Collections; Collections java.util public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));

		Integer[] hList = new Integer[10];
		for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		}

		Arrays.sort(hList, Collections.reverseOrder());

		for (int rank = 0; rank < 3; rank++) {
			System.out.println(hList[rank]);
		}
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));

		Integer[] hList = new Integer[10];
		for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		}

		Arrays.sort(hList, Collections.reverseOrder());

		for (int rank = 0; rank < 3; rank++) {
			System.out.println(hList[rank]);
		}
	} main {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));

		Integer[] hList = new Integer[10];
		for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		}

		Arrays.sort(hList, Collections.reverseOrder());

		for (int rank = 0; rank < 3; rank++) {
			System.out.println(hList[rank]);
		}
	} BufferedReader sb = new BufferedReader(new InputStreamReader(System.in)); sb new BufferedReader(new InputStreamReader(System.in)) Integer[] hList = new Integer[10]; hList new Integer[10] 10 for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		} int num = 0; int num = 0; num 0 num < 10 num 10 num++ num++ num {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		} {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		} int h = Integer.parseInt(sb.readLine()); h Integer.parseInt(sb.readLine()) Integer.parseInt Integer sb.readLine() sb.readLine sb hList[num] = h hList[num] hList num h Arrays.sort(hList, Collections.reverseOrder()) Arrays.sort Arrays hList Collections.reverseOrder() Collections.reverseOrder Collections for (int rank = 0; rank < 3; rank++) {
			System.out.println(hList[rank]);
		} int rank = 0; int rank = 0; rank 0 rank < 3 rank 3 rank++ rank++ rank {
			System.out.println(hList[rank]);
		} {
			System.out.println(hList[rank]);
		} System.out.println(hList[rank]) System.out.println System.out System System.out hList[rank] hList rank String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));

		Integer[] hList = new Integer[10];
		for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		}

		Arrays.sort(hList, Collections.reverseOrder());

		for (int rank = 0; rank < 3; rank++) {
			System.out.println(hList[rank]);
		}
	}
} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));

		Integer[] hList = new Integer[10];
		for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		}

		Arrays.sort(hList, Collections.reverseOrder());

		for (int rank = 0; rank < 3; rank++) {
			System.out.println(hList[rank]);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader sb = new BufferedReader(new InputStreamReader(System.in));

		Integer[] hList = new Integer[10];
		for (int num = 0; num < 10; num++) {
			int h = Integer.parseInt(sb.readLine());
			hList[num] = h;
		}

		Arrays.sort(hList, Collections.reverseOrder());

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