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

class Main {
    public static void main(String args[]) {
        ArrayList<Integer> heights = new ArrayList<Integer>();

        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            heights.add(sc.nextInt());
        }

        Collections.sort(heights);
        Collections.reverse(heights);

        for (int i = 0; i < 3; i++) {
            System.out.println(heights.get(i));
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util class Main {
    public static void main(String args[]) {
        ArrayList<Integer> heights = new ArrayList<Integer>();

        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            heights.add(sc.nextInt());
        }

        Collections.sort(heights);
        Collections.reverse(heights);

        for (int i = 0; i < 3; i++) {
            System.out.println(heights.get(i));
        }
    }
} Main public static void main(String args[]) {
        ArrayList<Integer> heights = new ArrayList<Integer>();

        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            heights.add(sc.nextInt());
        }

        Collections.sort(heights);
        Collections.reverse(heights);

        for (int i = 0; i < 3; i++) {
            System.out.println(heights.get(i));
        }
    } main {
        ArrayList<Integer> heights = new ArrayList<Integer>();

        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            heights.add(sc.nextInt());
        }

        Collections.sort(heights);
        Collections.reverse(heights);

        for (int i = 0; i < 3; i++) {
            System.out.println(heights.get(i));
        }
    } ArrayList<Integer> heights = new ArrayList<Integer>(); heights new ArrayList<Integer>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNextInt()) {
            heights.add(sc.nextInt());
        } sc.hasNextInt() sc.hasNextInt sc {
            heights.add(sc.nextInt());
        } heights.add(sc.nextInt()) heights.add heights sc.nextInt() sc.nextInt sc Collections.sort(heights) Collections.sort Collections heights Collections.reverse(heights) Collections.reverse Collections heights for (int i = 0; i < 3; i++) {
            System.out.println(heights.get(i));
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            System.out.println(heights.get(i));
        } {
            System.out.println(heights.get(i));
        } System.out.println(heights.get(i)) System.out.println System.out System System.out heights.get(i) heights.get heights i String args[] args
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

class Main {
    public static void main(String args[]) {
        ArrayList<Integer> heights = new ArrayList<Integer>();

        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            heights.add(sc.nextInt());
        }

        Collections.sort(heights);
        Collections.reverse(heights);

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