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

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

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