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

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

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