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

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

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