import java.io.*;
import java.util.*;

class Main{
    public static void main(String[] a){
        int[] values = new int[10];
        Scanner scan = new Scanner(System.in);
        for(int i=0; i<10; i++)
            values[i] = scan.nextInt();
        Arrays.sort(values);
        for(int i=9; i>=7; i--)
            System.out.println(values[i]);
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String[] a){
        int[] values = new int[10];
        Scanner scan = new Scanner(System.in);
        for(int i=0; i<10; i++)
            values[i] = scan.nextInt();
        Arrays.sort(values);
        for(int i=9; i>=7; i--)
            System.out.println(values[i]);
    }
} Main public static void main(String[] a){
        int[] values = new int[10];
        Scanner scan = new Scanner(System.in);
        for(int i=0; i<10; i++)
            values[i] = scan.nextInt();
        Arrays.sort(values);
        for(int i=9; i>=7; i--)
            System.out.println(values[i]);
    } main {
        int[] values = new int[10];
        Scanner scan = new Scanner(System.in);
        for(int i=0; i<10; i++)
            values[i] = scan.nextInt();
        Arrays.sort(values);
        for(int i=9; i>=7; i--)
            System.out.println(values[i]);
    } int[] values = new int[10]; values new int[10] 10 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) for(int i=0; i<10; i++)
            values[i] = scan.nextInt(); int i=0; int i=0; i 0 i<10 i 10 i++ i++ i values[i] = scan.nextInt(); values[i] = scan.nextInt() values[i] values i scan.nextInt() scan.nextInt scan Arrays.sort(values) Arrays.sort Arrays values for(int i=9; i>=7; i--)
            System.out.println(values[i]); int i=9; int i=9; i 9 i>=7 i 7 i-- i-- i System.out.println(values[i]); System.out.println(values[i]) System.out.println System.out System System.out values[i] values i String[] a a
import java.io.*;
import java.util.*;

class Main{
    public static void main(String[] a){
        int[] values = new int[10];
        Scanner scan = new Scanner(System.in);
        for(int i=0; i<10; i++)
            values[i] = scan.nextInt();
        Arrays.sort(values);
        for(int i=9; i>=7; i--)
            System.out.println(values[i]);
    }
}