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

public class Main {
	private static Scanner scan;

	public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

		for(int i=9;i>6;i--){
			System.out.println(list[i]);
		}

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

	public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

		for(int i=9;i>6;i--){
			System.out.println(list[i]);
		}

	}
} Main private static Scanner scan; scan public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

		for(int i=9;i>6;i--){
			System.out.println(list[i]);
		}

	} main {
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

		for(int i=9;i>6;i--){
			System.out.println(list[i]);
		}

	} scan = new Scanner(System.in) scan new Scanner(System.in) int[] list = new int[10]; list new int[10] 10 for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			list[i]=scan.nextInt();
		} {
			list[i]=scan.nextInt();
		} list[i]=scan.nextInt() list[i] list i scan.nextInt() scan.nextInt scan Arrays.sort(list) Arrays.sort Arrays list for(int i=9;i>6;i--){
			System.out.println(list[i]);
		} int i=9; int i=9; i 9 i>6 i 6 i-- i-- i {
			System.out.println(list[i]);
		} {
			System.out.println(list[i]);
		} System.out.println(list[i]) System.out.println System.out System System.out list[i] list i String a[] a public class Main {
	private static Scanner scan;

	public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

		for(int i=9;i>6;i--){
			System.out.println(list[i]);
		}

	}
} public class Main {
	private static Scanner scan;

	public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

		for(int i=9;i>6;i--){
			System.out.println(list[i]);
		}

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

public class Main {
	private static Scanner scan;

	public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

		for(int i=9;i>6;i--){
			System.out.println(list[i]);
		}

	}
}

