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


public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		}
		sc.close();
		Arrays.sort(mount);
		i = i-1;
		for(;i >= 7;i--){
		System.out.println(mount[i]);
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		}
		sc.close();
		Arrays.sort(mount);
		i = i-1;
		for(;i >= 7;i--){
		System.out.println(mount[i]);
		}
	}
} Main public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		}
		sc.close();
		Arrays.sort(mount);
		i = i-1;
		for(;i >= 7;i--){
		System.out.println(mount[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		}
		sc.close();
		Arrays.sort(mount);
		i = i-1;
		for(;i >= 7;i--){
		System.out.println(mount[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer[] mount = new Integer[10]; mount new Integer[10] 10 int i = 0; i 0 while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		} i != 10 i 10 {
			mount[i] = sc.nextInt();
			i++;
		} mount[i] = sc.nextInt() mount[i] mount i sc.nextInt() sc.nextInt sc i++ i sc.close() sc.close sc Arrays.sort(mount) Arrays.sort Arrays mount i = i-1 i i-1 i 1 for(;i >= 7;i--){
		System.out.println(mount[i]);
		} ; i >= 7 i 7 i-- i-- i {
		System.out.println(mount[i]);
		} {
		System.out.println(mount[i]);
		} System.out.println(mount[i]) System.out.println System.out System System.out mount[i] mount i String args[] args public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		}
		sc.close();
		Arrays.sort(mount);
		i = i-1;
		for(;i >= 7;i--){
		System.out.println(mount[i]);
		}
	}
} public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		}
		sc.close();
		Arrays.sort(mount);
		i = i-1;
		for(;i >= 7;i--){
		System.out.println(mount[i]);
		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;


public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(i != 10){
			mount[i] = sc.nextInt();
			i++;
		}
		sc.close();
		Arrays.sort(mount);
		i = i-1;
		for(;i >= 7;i--){
		System.out.println(mount[i]);
		}
	}
}