import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> hight = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {

			hight.add(input());

		}

		Collections.sort(hight);

		System.out.println(hight.get(9));
		System.out.println(hight.get(8));
		System.out.println(hight.get(7));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> hight = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {

			hight.add(input());

		}

		Collections.sort(hight);

		System.out.println(hight.get(9));
		System.out.println(hight.get(8));
		System.out.println(hight.get(7));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {

		ArrayList<Integer> hight = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {

			hight.add(input());

		}

		Collections.sort(hight);

		System.out.println(hight.get(9));
		System.out.println(hight.get(8));
		System.out.println(hight.get(7));

		close();

	} main {

		ArrayList<Integer> hight = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {

			hight.add(input());

		}

		Collections.sort(hight);

		System.out.println(hight.get(9));
		System.out.println(hight.get(8));
		System.out.println(hight.get(7));

		close();

	} ArrayList<Integer> hight = new ArrayList<Integer>(); hight new ArrayList<Integer>() for (int i = 0; i < 10; i++) {

			hight.add(input());

		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {

			hight.add(input());

		} {

			hight.add(input());

		} hight.add(input()) hight.add hight input() input Collections.sort(hight) Collections.sort Collections hight System.out.println(hight.get(9)) System.out.println System.out System System.out hight.get(9) hight.get hight 9 System.out.println(hight.get(8)) System.out.println System.out System System.out hight.get(8) hight.get hight 8 System.out.println(hight.get(7)) System.out.println System.out System System.out hight.get(7) hight.get hight 7 close() close String[] args args public static int input() {

		return scanner.nextInt();

	} input {

		return scanner.nextInt();

	} return scanner.nextInt(); scanner.nextInt() scanner.nextInt scanner public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	} close {

		if (scanner != null) {

			scanner.close();

		}
	} if (scanner != null) {

			scanner.close();

		} scanner != null scanner null {

			scanner.close();

		} scanner.close() scanner.close scanner public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> hight = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {

			hight.add(input());

		}

		Collections.sort(hight);

		System.out.println(hight.get(9));
		System.out.println(hight.get(8));
		System.out.println(hight.get(7));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> hight = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {

			hight.add(input());

		}

		Collections.sort(hight);

		System.out.println(hight.get(9));
		System.out.println(hight.get(8));
		System.out.println(hight.get(7));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		ArrayList<Integer> hight = new ArrayList<Integer>();

		for (int i = 0; i < 10; i++) {

			hight.add(input());

		}

		Collections.sort(hight);

		System.out.println(hight.get(9));
		System.out.println(hight.get(8));
		System.out.println(hight.get(7));

		close();

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}