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

public class Main{
    public static void main(String[] a){
    	Scanner scanner = new Scanner(System.in);
    	Integer[] data = new Integer[10];
    	for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	}
    	scanner.close();
    	Arrays.sort(data, Comparator.reverseOrder());
    	for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	}

    }
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] a){
    	Scanner scanner = new Scanner(System.in);
    	Integer[] data = new Integer[10];
    	for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	}
    	scanner.close();
    	Arrays.sort(data, Comparator.reverseOrder());
    	for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	}

    }
} Main public static void main(String[] a){
    	Scanner scanner = new Scanner(System.in);
    	Integer[] data = new Integer[10];
    	for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	}
    	scanner.close();
    	Arrays.sort(data, Comparator.reverseOrder());
    	for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	}

    } main {
    	Scanner scanner = new Scanner(System.in);
    	Integer[] data = new Integer[10];
    	for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	}
    	scanner.close();
    	Arrays.sort(data, Comparator.reverseOrder());
    	for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	}

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer[] data = new Integer[10]; data new Integer[10] 10 for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	} {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	} int number = scanner.nextInt(); number scanner.nextInt() scanner.nextInt scanner while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		} !(0 <= number && number <= 10000) (0 <= number && number <= 10000) 0 <= number 0 number number <= 10000 number 10000 {
    			number = scanner.nextInt();
    		} number = scanner.nextInt() number scanner.nextInt() scanner.nextInt scanner data[i] = number data[i] data i number scanner.close() scanner.close scanner Arrays.sort(data, Comparator.reverseOrder()) Arrays.sort Arrays data Comparator.reverseOrder() Comparator.reverseOrder Comparator for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
    		System.out.println(data[i]);
    	} {
    		System.out.println(data[i]);
    	} System.out.println(data[i]) System.out.println System.out System System.out data[i] data i String[] a a public class Main{
    public static void main(String[] a){
    	Scanner scanner = new Scanner(System.in);
    	Integer[] data = new Integer[10];
    	for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	}
    	scanner.close();
    	Arrays.sort(data, Comparator.reverseOrder());
    	for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	}

    }
} public class Main{
    public static void main(String[] a){
    	Scanner scanner = new Scanner(System.in);
    	Integer[] data = new Integer[10];
    	for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	}
    	scanner.close();
    	Arrays.sort(data, Comparator.reverseOrder());
    	for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	}

    }
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main{
    public static void main(String[] a){
    	Scanner scanner = new Scanner(System.in);
    	Integer[] data = new Integer[10];
    	for (int i = 0; i < 10; i++) {
    		int number = scanner.nextInt();
    		while (!(0 <= number && number <= 10000)) {
    			number = scanner.nextInt();
    		}
    		data[i] = number;
    	}
    	scanner.close();
    	Arrays.sort(data, Comparator.reverseOrder());
    	for (int i = 0; i < 3; i++) {
    		System.out.println(data[i]);
    	}

    }
}