import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);;
        ArrayList<Integer> mList = new ArrayList<>();

        while(sc.hasNext()){
            mList.add(sc.nextInt());
        }
        mList.sort(Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);;
        ArrayList<Integer> mList = new ArrayList<>();

        while(sc.hasNext()){
            mList.add(sc.nextInt());
        }
        mList.sort(Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);;
        ArrayList<Integer> mList = new ArrayList<>();

        while(sc.hasNext()){
            mList.add(sc.nextInt());
        }
        mList.sort(Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        }
    } main {
        Scanner sc = new Scanner(System.in);;
        ArrayList<Integer> mList = new ArrayList<>();

        while(sc.hasNext()){
            mList.add(sc.nextInt());
        }
        mList.sort(Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> mList = new ArrayList<>(); mList new ArrayList<>() while(sc.hasNext()){
            mList.add(sc.nextInt());
        } sc.hasNext() sc.hasNext sc {
            mList.add(sc.nextInt());
        } mList.add(sc.nextInt()) mList.add mList sc.nextInt() sc.nextInt sc mList.sort(Comparator.reverseOrder()) mList.sort mList Comparator.reverseOrder() Comparator.reverseOrder Comparator for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            System.out.println(mList.get(i));
        } {
            System.out.println(mList.get(i));
        } System.out.println(mList.get(i)) System.out.println System.out System System.out mList.get(i) mList.get mList i String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);;
        ArrayList<Integer> mList = new ArrayList<>();

        while(sc.hasNext()){
            mList.add(sc.nextInt());
        }
        mList.sort(Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);;
        ArrayList<Integer> mList = new ArrayList<>();

        while(sc.hasNext()){
            mList.add(sc.nextInt());
        }
        mList.sort(Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        }
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);;
        ArrayList<Integer> mList = new ArrayList<>();

        while(sc.hasNext()){
            mList.add(sc.nextInt());
        }
        mList.sort(Comparator.reverseOrder());
        for (int i = 0; i < 3; i++) {
            System.out.println(mList.get(i));
        }
    }
}