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

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer []a = new Integer[10];
		for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(a, Collections.reverseOrder());
		for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
}
 import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer []a = new Integer[10];
		for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(a, Collections.reverseOrder());
		for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer []a = new Integer[10];
		for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(a, Collections.reverseOrder());
		for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		Integer []a = new Integer[10];
		for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(a, Collections.reverseOrder());
		for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer []a = new Integer[10]; a new Integer[10] 10 for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			a[i] = sc.nextInt();
		} {
			a[i] = sc.nextInt();
		} a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc sc.close() sc.close sc Arrays.sort(a, Collections.reverseOrder()) Arrays.sort Arrays a Collections.reverseOrder() Collections.reverseOrder Collections for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 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 String[] args args public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer []a = new Integer[10];
		for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(a, Collections.reverseOrder());
		for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer []a = new Integer[10];
		for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(a, Collections.reverseOrder());
		for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
} Main
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer []a = new Integer[10];
		for(int i = 0; i < 10; i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
		Arrays.sort(a, Collections.reverseOrder());
		for(int i = 0; i < 3; i++) {
			System.out.println(a[i]);
		}
	}
}

