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

public class Main {

	public static void main(String[] args) {
		ArrayList<Integer> height = new ArrayList<Integer>();
		Scanner sc = new java.util.Scanner(System.in);
		for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		}

		Collections.sort(height);

		for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		}

	}

} 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 void main(String[] args) {
		ArrayList<Integer> height = new ArrayList<Integer>();
		Scanner sc = new java.util.Scanner(System.in);
		for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		}

		Collections.sort(height);

		for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		}

	}

} Main public static void main(String[] args) {
		ArrayList<Integer> height = new ArrayList<Integer>();
		Scanner sc = new java.util.Scanner(System.in);
		for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		}

		Collections.sort(height);

		for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		}

	} main {
		ArrayList<Integer> height = new ArrayList<Integer>();
		Scanner sc = new java.util.Scanner(System.in);
		for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		}

		Collections.sort(height);

		for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		}

	} ArrayList<Integer> height = new ArrayList<Integer>(); height new ArrayList<Integer>() Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			height.add(sc.nextInt());
		} {
			height.add(sc.nextInt());
		} height.add(sc.nextInt()) height.add height sc.nextInt() sc.nextInt sc Collections.sort(height) Collections.sort Collections height for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		} int i = 9; int i = 9; i 9 i > 6 i 6 i-- i-- i {
			System.out.println(height.get(i));
		} {
			System.out.println(height.get(i));
		} System.out.println(height.get(i)) System.out.println System.out System System.out height.get(i) height.get height i String[] args args public class Main {

	public static void main(String[] args) {
		ArrayList<Integer> height = new ArrayList<Integer>();
		Scanner sc = new java.util.Scanner(System.in);
		for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		}

		Collections.sort(height);

		for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		}

	}

} public class Main {

	public static void main(String[] args) {
		ArrayList<Integer> height = new ArrayList<Integer>();
		Scanner sc = new java.util.Scanner(System.in);
		for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		}

		Collections.sort(height);

		for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		}

	}

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

public class Main {

	public static void main(String[] args) {
		ArrayList<Integer> height = new ArrayList<Integer>();
		Scanner sc = new java.util.Scanner(System.in);
		for (int i = 0; i < 10; i++) {
			height.add(sc.nextInt());
		}

		Collections.sort(height);

		for (int i = 9; i > 6; i--) {
			System.out.println(height.get(i));
		}

	}

}