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

class Main {
	public static void main(String[] args){
		Scanner cin = new Scanner(System.in);
		int[] x = new int[10];
		
		int i;
		for(i = 0; i < 10; i++){
			x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for  (i = 9; i > 6; i--){
			System.out.println(x[i]);
		}
	}
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main {
	public static void main(String[] args){
		Scanner cin = new Scanner(System.in);
		int[] x = new int[10];
		
		int i;
		for(i = 0; i < 10; i++){
			x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for  (i = 9; i > 6; i--){
			System.out.println(x[i]);
		}
	}
} Main public static void main(String[] args){
		Scanner cin = new Scanner(System.in);
		int[] x = new int[10];
		
		int i;
		for(i = 0; i < 10; i++){
			x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for  (i = 9; i > 6; i--){
			System.out.println(x[i]);
		}
	} main {
		Scanner cin = new Scanner(System.in);
		int[] x = new int[10];
		
		int i;
		for(i = 0; i < 10; i++){
			x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for  (i = 9; i > 6; i--){
			System.out.println(x[i]);
		}
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int[] x = new int[10]; x new int[10] 10 int i; i for(i = 0; i < 10; i++){
			x[i] = cin.nextInt();
		} i = 0; i = 0 i 0 i < 10 i 10 i++ i++ i {
			x[i] = cin.nextInt();
		} {
			x[i] = cin.nextInt();
		} x[i] = cin.nextInt() x[i] x i cin.nextInt() cin.nextInt cin Arrays.sort(x) Arrays.sort Arrays x for  (i = 9; i > 6; i--){
			System.out.println(x[i]);
		} i = 9; i = 9 i 9 i > 6 i 6 i-- i-- i {
			System.out.println(x[i]);
		} {
			System.out.println(x[i]);
		} System.out.println(x[i]) System.out.println System.out System System.out x[i] x i String[] args args
import java.util.Scanner;
import java.util.Arrays;

class Main {
	public static void main(String[] args){
		Scanner cin = new Scanner(System.in);
		int[] x = new int[10];
		
		int i;
		for(i = 0; i < 10; i++){
			x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for  (i = 9; i > 6; i--){
			System.out.println(x[i]);
		}
	}
}