import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	} main {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	} Scanner sc = null; sc null try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		} catch (Exception e) {
			System.out.println(e);
		} Exception e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		} if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			} sc != null sc null {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			} try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				} catch (Exception e) {
					// TODO: handle exception
				} Exception e {
					// TODO: handle exception
				} {
					sc.close();
				} sc.close() sc.close sc {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		} sc = new Scanner(System.in) sc new Scanner(System.in) int[] hillList = new int[10]; hillList new int[10] 10 for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
				hillList[i] = sc.nextInt();
			} {
				hillList[i] = sc.nextInt();
			} hillList[i] = sc.nextInt() hillList[i] hillList i sc.nextInt() sc.nextInt sc Arrays.sort(hillList) Arrays.sort Arrays hillList int n = hillList.length - 1; n hillList.length - 1 hillList.length hillList hillList.length 1 for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {

				System.out.println(hillList[n]);
				n--;
			} {

				System.out.println(hillList[n]);
				n--;
			} System.out.println(hillList[n]) System.out.println System.out System System.out hillList[n] hillList n n-- n String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = null;

		try {
			sc = new Scanner(System.in);
			int[] hillList = new int[10];

			for (int i = 0; i < 10; i++) {
				hillList[i] = sc.nextInt();
			}
			Arrays.sort(hillList);
			int n = hillList.length - 1;
			for (int j = 0; j < 3; j++) {

				System.out.println(hillList[n]);
				n--;
			}
		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

}