import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main{
    public static void main(String[] args) throws IOException {
        
        BufferedReader r = 
        new BufferedReader(new InputStreamReader(System.in));
        
        int[] a;
        a = new int[10];
        for (int i = 0; i < 10; i++){
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        }
        Arrays.sort(a);
        for (int i = 9; i >6; i--){
            System.out.println(a[i]);
        }            
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util class Main{
    public static void main(String[] args) throws IOException {
        
        BufferedReader r = 
        new BufferedReader(new InputStreamReader(System.in));
        
        int[] a;
        a = new int[10];
        for (int i = 0; i < 10; i++){
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        }
        Arrays.sort(a);
        for (int i = 9; i >6; i--){
            System.out.println(a[i]);
        }            
    }
} Main public static void main(String[] args) throws IOException {
        
        BufferedReader r = 
        new BufferedReader(new InputStreamReader(System.in));
        
        int[] a;
        a = new int[10];
        for (int i = 0; i < 10; i++){
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        }
        Arrays.sort(a);
        for (int i = 9; i >6; i--){
            System.out.println(a[i]);
        }            
    } main {
        
        BufferedReader r = 
        new BufferedReader(new InputStreamReader(System.in));
        
        int[] a;
        a = new int[10];
        for (int i = 0; i < 10; i++){
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        }
        Arrays.sort(a);
        for (int i = 9; i >6; i--){
            System.out.println(a[i]);
        }            
    } BufferedReader r = 
        new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) int[] a; a a = new int[10] a new int[10] 10 for (int i = 0; i < 10; i++){
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        } {
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        } String s = r.readLine(); s r.readLine() r.readLine r a[i] = Integer.valueOf(s) a[i] a i Integer.valueOf(s) Integer.valueOf Integer s Arrays.sort(a) Arrays.sort Arrays a for (int i = 9; i >6; i--){
            System.out.println(a[i]);
        } int i = 9; int i = 9; i 9 i >6 i 6 i-- i-- i {
            System.out.println(a[i]);
        } {
            System.out.println(a[i]);
        } System.out.println(a[i]) System.out.println System.out System System.out a[i] a i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main{
    public static void main(String[] args) throws IOException {
        
        BufferedReader r = 
        new BufferedReader(new InputStreamReader(System.in));
        
        int[] a;
        a = new int[10];
        for (int i = 0; i < 10; i++){
            String s = r.readLine();
            a[i] = Integer.valueOf(s);
        }
        Arrays.sort(a);
        for (int i = 9; i >6; i--){
            System.out.println(a[i]);
        }            
    }
}