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