import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int value;
        for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        }
        Collections.sort(list);
        System.out.println(list.get(9));
        System.out.println(list.get(8));
        System.out.println(list.get(7));
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int value;
        for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        }
        Collections.sort(list);
        System.out.println(list.get(9));
        System.out.println(list.get(8));
        System.out.println(list.get(7));
    }
} Main private static Scanner scan; scan public static void main(String[] args) {
        scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int value;
        for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        }
        Collections.sort(list);
        System.out.println(list.get(9));
        System.out.println(list.get(8));
        System.out.println(list.get(7));
    } main {
        scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int value;
        for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        }
        Collections.sort(list);
        System.out.println(list.get(9));
        System.out.println(list.get(8));
        System.out.println(list.get(7));
    } scan = new Scanner(System.in) scan new Scanner(System.in) List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int value; value for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        } {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        } value = scan.nextInt() value scan.nextInt() scan.nextInt scan if (value <= 10000) {
                list.add(value);
            } value <= 10000 value 10000 {
                list.add(value);
            } list.add(value) list.add list value Collections.sort(list) Collections.sort Collections list System.out.println(list.get(9)) System.out.println System.out System System.out list.get(9) list.get list 9 System.out.println(list.get(8)) System.out.println System.out System System.out list.get(8) list.get list 8 System.out.println(list.get(7)) System.out.println System.out System System.out list.get(7) list.get list 7 String[] args args public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int value;
        for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        }
        Collections.sort(list);
        System.out.println(list.get(9));
        System.out.println(list.get(8));
        System.out.println(list.get(7));
    }
} public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int value;
        for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        }
        Collections.sort(list);
        System.out.println(list.get(9));
        System.out.println(list.get(8));
        System.out.println(list.get(7));
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int value;
        for (int i = 0; i < 10; i++) {
            value = scan.nextInt();
            if (value <= 10000) {
                list.add(value);
            }
        }
        Collections.sort(list);
        System.out.println(list.get(9));
        System.out.println(list.get(8));
        System.out.println(list.get(7));
    }
}