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

public class Main {

	/**
	 * AOJ001 List of Top 3 Hills
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		ArrayList<Integer> mountainList = getMountainList();

		Collections.sort(mountainList);
		Collections.reverse(mountainList);

		for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		}
	}

	/**
	 * ??\??????????????¨??????10???????±±????????????????´???????????????????????????´??????
	 *
	 * @return 10???????±±????????????????´???????????????????
	 * @throws IOException ??\????????¨??????
	 */
	private static ArrayList<Integer> getMountainList() throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		ArrayList<Integer> mountainList = new ArrayList<Integer>();

		String strInput;
		for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		}

		bufferedReader.close();
		return mountainList;
	}

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

	/**
	 * AOJ001 List of Top 3 Hills
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		ArrayList<Integer> mountainList = getMountainList();

		Collections.sort(mountainList);
		Collections.reverse(mountainList);

		for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		}
	}

	/**
	 * ??\??????????????¨??????10???????±±????????????????´???????????????????????????´??????
	 *
	 * @return 10???????±±????????????????´???????????????????
	 * @throws IOException ??\????????¨??????
	 */
	private static ArrayList<Integer> getMountainList() throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		ArrayList<Integer> mountainList = new ArrayList<Integer>();

		String strInput;
		for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		}

		bufferedReader.close();
		return mountainList;
	}

} Main /**
	 * AOJ001 List of Top 3 Hills
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		ArrayList<Integer> mountainList = getMountainList();

		Collections.sort(mountainList);
		Collections.reverse(mountainList);

		for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		}
	} main {
		ArrayList<Integer> mountainList = getMountainList();

		Collections.sort(mountainList);
		Collections.reverse(mountainList);

		for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		}
	} ArrayList<Integer> mountainList = getMountainList(); mountainList getMountainList() getMountainList Collections.sort(mountainList) Collections.sort Collections mountainList Collections.reverse(mountainList) Collections.reverse Collections mountainList for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(mountainList.get(i));
		} {
			System.out.println(mountainList.get(i));
		} System.out.println(mountainList.get(i)) System.out.println System.out System System.out mountainList.get(i) mountainList.get mountainList i String[] args args /**
	 * ??\??????????????¨??????10???????±±????????????????´???????????????????????????´??????
	 *
	 * @return 10???????±±????????????????´???????????????????
	 * @throws IOException ??\????????¨??????
	 */
	private static ArrayList<Integer> getMountainList() throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		ArrayList<Integer> mountainList = new ArrayList<Integer>();

		String strInput;
		for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		}

		bufferedReader.close();
		return mountainList;
	} getMountainList {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		ArrayList<Integer> mountainList = new ArrayList<Integer>();

		String strInput;
		for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		}

		bufferedReader.close();
		return mountainList;
	} BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in)); bufferedReader new BufferedReader(
				new InputStreamReader(System.in)) ArrayList<Integer> mountainList = new ArrayList<Integer>(); mountainList new ArrayList<Integer>() String strInput; strInput for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		} {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		} strInput = bufferedReader.readLine() strInput bufferedReader.readLine() bufferedReader.readLine bufferedReader mountainList.add(Integer.parseInt(strInput)) mountainList.add mountainList Integer.parseInt(strInput) Integer.parseInt Integer strInput bufferedReader.close() bufferedReader.close bufferedReader return mountainList; mountainList public class Main {

	/**
	 * AOJ001 List of Top 3 Hills
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		ArrayList<Integer> mountainList = getMountainList();

		Collections.sort(mountainList);
		Collections.reverse(mountainList);

		for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		}
	}

	/**
	 * ??\??????????????¨??????10???????±±????????????????´???????????????????????????´??????
	 *
	 * @return 10???????±±????????????????´???????????????????
	 * @throws IOException ??\????????¨??????
	 */
	private static ArrayList<Integer> getMountainList() throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		ArrayList<Integer> mountainList = new ArrayList<Integer>();

		String strInput;
		for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		}

		bufferedReader.close();
		return mountainList;
	}

} public class Main {

	/**
	 * AOJ001 List of Top 3 Hills
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		ArrayList<Integer> mountainList = getMountainList();

		Collections.sort(mountainList);
		Collections.reverse(mountainList);

		for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		}
	}

	/**
	 * ??\??????????????¨??????10???????±±????????????????´???????????????????????????´??????
	 *
	 * @return 10???????±±????????????????´???????????????????
	 * @throws IOException ??\????????¨??????
	 */
	private static ArrayList<Integer> getMountainList() throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		ArrayList<Integer> mountainList = new ArrayList<Integer>();

		String strInput;
		for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		}

		bufferedReader.close();
		return mountainList;
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

	/**
	 * AOJ001 List of Top 3 Hills
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		ArrayList<Integer> mountainList = getMountainList();

		Collections.sort(mountainList);
		Collections.reverse(mountainList);

		for (int i = 0; i < 3; i++) {
			System.out.println(mountainList.get(i));
		}
	}

	/**
	 * ??\??????????????¨??????10???????±±????????????????´???????????????????????????´??????
	 *
	 * @return 10???????±±????????????????´???????????????????
	 * @throws IOException ??\????????¨??????
	 */
	private static ArrayList<Integer> getMountainList() throws IOException {
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(System.in));
		ArrayList<Integer> mountainList = new ArrayList<Integer>();

		String strInput;
		for (int i = 0; i < 10; i++) {
			strInput = bufferedReader.readLine();
			mountainList.add(Integer.parseInt(strInput));
		}

		bufferedReader.close();
		return mountainList;
	}

}