import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

class Main {
    public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	    	
	    	ArrayList<Integer> arr = new ArrayList<Integer>();
	    	for(int i=0;i<10;i++) {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	}
	    	Collections.sort(arr);
	    	Collections.reverse(arr);
	    	for(int i=0;i<3;i++) {
	    		System.out.println(""+arr.get(i));
	    	}
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util class Main {
    public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	    	
	    	ArrayList<Integer> arr = new ArrayList<Integer>();
	    	for(int i=0;i<10;i++) {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	}
	    	Collections.sort(arr);
	    	Collections.reverse(arr);
	    	for(int i=0;i<3;i++) {
	    		System.out.println(""+arr.get(i));
	    	}
    }
} Main public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	    	
	    	ArrayList<Integer> arr = new ArrayList<Integer>();
	    	for(int i=0;i<10;i++) {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	}
	    	Collections.sort(arr);
	    	Collections.reverse(arr);
	    	for(int i=0;i<3;i++) {
	    		System.out.println(""+arr.get(i));
	    	}
    } main {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	    	
	    	ArrayList<Integer> arr = new ArrayList<Integer>();
	    	for(int i=0;i<10;i++) {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	}
	    	Collections.sort(arr);
	    	Collections.reverse(arr);
	    	for(int i=0;i<3;i++) {
	    		System.out.println(""+arr.get(i));
	    	}
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) ArrayList<Integer> arr = new ArrayList<Integer>(); arr new ArrayList<Integer>() for(int i=0;i<10;i++) {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	} {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	} String str = reader.readLine(); str reader.readLine() reader.readLine reader arr.add(Integer.parseInt(str)) arr.add arr Integer.parseInt(str) Integer.parseInt Integer str Collections.sort(arr) Collections.sort Collections arr Collections.reverse(arr) Collections.reverse Collections arr for(int i=0;i<3;i++) {
	    		System.out.println(""+arr.get(i));
	    	} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
	    		System.out.println(""+arr.get(i));
	    	} {
	    		System.out.println(""+arr.get(i));
	    	} System.out.println(""+arr.get(i)) System.out.println System.out System System.out ""+arr.get(i) "" arr.get(i) arr.get arr i String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

class Main {
    public static void main(String[] args) throws IOException {
	    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	    	
	    	ArrayList<Integer> arr = new ArrayList<Integer>();
	    	for(int i=0;i<10;i++) {
	    		String str = reader.readLine();
	    		arr.add(Integer.parseInt(str));
	    	}
	    	Collections.sort(arr);
	    	Collections.reverse(arr);
	    	for(int i=0;i<3;i++) {
	    		System.out.println(""+arr.get(i));
	    	}
    }
}