import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int[] mt = new int[10];
		for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		}
		for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		}
	}
} import java.util.*; util.* java public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int[] mt = new int[10];
		for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		}
		for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		}
	}
} Main private static final Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args){
		int[] mt = new int[10];
		for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		}
		for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		}
	} main {
		int[] mt = new int[10];
		for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		}
		for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		}
	} int[] mt = new int[10]; mt new int[10] 10 for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			int h = scan.nextInt();
			mt[i] = h;
		} {
			int h = scan.nextInt();
			mt[i] = h;
		} int h = scan.nextInt(); h scan.nextInt() scan.nextInt scan mt[i] = h mt[i] mt i h for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		} int i = 0; int i = 0; i 0 i < 10 - 1 i 10 - 1 10 1 i++ i++ i {
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		} {
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		} for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			} int j = 10 - 1; int j = 10 - 1; j 10 - 1 10 1 j > i j i j-- j-- j {
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			} {
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			} if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				} mt[i] < mt[j] mt[i] mt i mt[j] mt j {
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				} int big = mt[j]; big mt[j] mt j mt[j] = mt[i] mt[j] mt j mt[i] mt i mt[i] = big mt[i] mt i big for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.printf("%d\n", mt[i]);
		} {
			System.out.printf("%d\n", mt[i]);
		} System.out.printf("%d\n", mt[i]) System.out.printf System.out System System.out "%d\n" mt[i] mt i String[] args args public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int[] mt = new int[10];
		for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		}
		for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		}
	}
} public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int[] mt = new int[10];
		for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		}
		for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		}
	}
} Main
import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int[] mt = new int[10];
		for(int i = 0; i < 10; i++){
			int h = scan.nextInt();
			mt[i] = h;
		}
		for(int i = 0; i < 10 - 1; i++){
			for(int j = 10 - 1; j > i; j--){
				if(mt[i] < mt[j]){
					int big = mt[j];
					mt[j] = mt[i];
					mt[i] = big;
				}
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.printf("%d\n", mt[i]);
		}
	}
}