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

public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        }
        Collections.sort(list);
        Collections.reverse(list);

        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }

} import java.io.IOException; IOException java.io 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 {

    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        }
        Collections.sort(list);
        Collections.reverse(list);

        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }

} Main public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        }
        Collections.sort(list);
        Collections.reverse(list);

        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    } main {
        Scanner scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        }
        Collections.sort(list);
        Collections.reverse(list);

        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            list.add(scan.nextInt());
        } {
            list.add(scan.nextInt());
        } list.add(scan.nextInt()) list.add list scan.nextInt() scan.nextInt scan Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            System.out.println(list.get(i));
        } {
            System.out.println(list.get(i));
        } System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        }
        Collections.sort(list);
        Collections.reverse(list);

        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }

} public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        }
        Collections.sort(list);
        Collections.reverse(list);

        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }

} Main
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        for (int i = 0; i < 10; i++) {
            list.add(scan.nextInt());
        }
        Collections.sort(list);
        Collections.reverse(list);

        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }

}