import java.util.*;

public class Main {
    public static void main(String args[] ) throws Exception {
        Integer arrays[] = new Integer[10];

        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 10; i++){
            arrays[i] = sc.nextInt();
        }
        Arrays.sort(arrays, Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(arrays[i]);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[] ) throws Exception {
        Integer arrays[] = new Integer[10];

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

        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 10; i++){
            arrays[i] = sc.nextInt();
        }
        Arrays.sort(arrays, Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(arrays[i]);
        }
    } main {
        Integer arrays[] = new Integer[10];

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

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

        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 10; i++){
            arrays[i] = sc.nextInt();
        }
        Arrays.sort(arrays, Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(arrays[i]);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[] ) throws Exception {
        Integer arrays[] = new Integer[10];

        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 10; i++){
            arrays[i] = sc.nextInt();
        }
        Arrays.sort(arrays, Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(arrays[i]);
        }
    }
}