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

public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> list = new ArrayList<>();
		int[] highs = new int[10];

		try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} 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 import java.util.List; List java.util public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> list = new ArrayList<>();
		int[] highs = new int[10];

		try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} Main public static void main(String[] args) {
		print();
	} main {
		print();
	} print() print String[] args args private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> list = new ArrayList<>();
		int[] highs = new int[10];

		try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		}

	} print {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> list = new ArrayList<>();
		int[] highs = new int[10];

		try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<Integer> list = new ArrayList<>(); list new ArrayList<>() int[] highs = new int[10]; highs new int[10] 10 try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			} int i = 0; int i = 0; i 0 i <= 9 i 9 i++ i++ i {
				highs[i] = Integer.parseInt(br.readLine());
			} {
				highs[i] = Integer.parseInt(br.readLine());
			} highs[i] = Integer.parseInt(br.readLine()) highs[i] highs i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			} int i = 0; int i = 0; i 0 i <= 9 i 9 i++ i++ i {
				list.add(highs[i]);
			} {
				list.add(highs[i]);
			} list.add(highs[i]) list.add list highs[i] highs i Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list for (int i = 0; i <= 2; i++) {
				System.out.println(list.get(i));
			} int i = 0; int i = 0; i 0 i <= 2 i 2 i++ i++ i {
				System.out.println(list.get(i));
			} {
				System.out.println(list.get(i));
			} System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> list = new ArrayList<>();
		int[] highs = new int[10];

		try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

} public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> list = new ArrayList<>();
		int[] highs = new int[10];

		try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

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

public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> list = new ArrayList<>();
		int[] highs = new int[10];

		try {
			for (int i = 0; i <= 9; i++) {
				highs[i] = Integer.parseInt(br.readLine());
			}

			for (int i = 0; i <= 9; i++) {
				list.add(highs[i]);
			}

			Collections.sort(list);
			Collections.reverse(list);

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

		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}