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

public class Main {
	public static void main(String[] a){
		int height[] = new int[10];
		Scanner in = new Scanner(System.in);
		for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		}
		Arrays.sort(height);
		System.out.println(height[9]);
		System.out.println(height[8]);
		System.out.println(height[7]);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] a){
		int height[] = new int[10];
		Scanner in = new Scanner(System.in);
		for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		}
		Arrays.sort(height);
		System.out.println(height[9]);
		System.out.println(height[8]);
		System.out.println(height[7]);
	}
} Main public static void main(String[] a){
		int height[] = new int[10];
		Scanner in = new Scanner(System.in);
		for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		}
		Arrays.sort(height);
		System.out.println(height[9]);
		System.out.println(height[8]);
		System.out.println(height[7]);
	} main {
		int height[] = new int[10];
		Scanner in = new Scanner(System.in);
		for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		}
		Arrays.sort(height);
		System.out.println(height[9]);
		System.out.println(height[8]);
		System.out.println(height[7]);
	} int height[] = new int[10]; height new int[10] 10 Scanner in = new Scanner(System.in); in new Scanner(System.in) for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		} int i = 0; int i = 0; i 0 i<10 i 10 i++ i++ i {
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		} {
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		} try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			} catch(Exception e){
				break;
			} Exception e {
				break;
			} break; {
				height[i] = in.nextInt();
			} height[i] = in.nextInt() height[i] height i in.nextInt() in.nextInt in Arrays.sort(height) Arrays.sort Arrays height System.out.println(height[9]) System.out.println System.out System System.out height[9] height 9 System.out.println(height[8]) System.out.println System.out System System.out height[8] height 8 System.out.println(height[7]) System.out.println System.out System System.out height[7] height 7 String[] a a public class Main {
	public static void main(String[] a){
		int height[] = new int[10];
		Scanner in = new Scanner(System.in);
		for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		}
		Arrays.sort(height);
		System.out.println(height[9]);
		System.out.println(height[8]);
		System.out.println(height[7]);
	}
} public class Main {
	public static void main(String[] a){
		int height[] = new int[10];
		Scanner in = new Scanner(System.in);
		for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		}
		Arrays.sort(height);
		System.out.println(height[9]);
		System.out.println(height[8]);
		System.out.println(height[7]);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] a){
		int height[] = new int[10];
		Scanner in = new Scanner(System.in);
		for(int i = 0;i<10;i++){
			try{
				height[i] = in.nextInt();
			}catch(Exception e){
				break;
			}
		}
		Arrays.sort(height);
		System.out.println(height[9]);
		System.out.println(height[8]);
		System.out.println(height[7]);
	}
}