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

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

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