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

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	}

} Main public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	} main {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] best = {0, 0, 0}; best {0, 0, 0} 0 0 0 for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        } int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        } {
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        } String line = br.readLine(); line br.readLine() br.readLine br int height = Integer.parseInt(line); height Integer.parseInt(line) Integer.parseInt Integer line if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            } height > best[0] height best[0] best 0 {	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            } best[2] = best[1] best[2] best 2 best[1] best 1 best[1] = best[0] best[1] best 1 best[0] best 0 best[0] = height best[0] best 0 height if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            } height > best[1] height best[1] best 1 {
            	best[2] = best[1];
            	best[1] = height;
            } best[2] = best[1] best[2] best 2 best[1] best 1 best[1] = height best[1] best 1 height if(height > best[2]){
            	best[2] = height;
            } height > best[2] height best[2] best 2 {
            	best[2] = height;
            } best[2] = height best[2] best 2 height for(int h: best){
        	System.out.println(h);
        } int h best {
        	System.out.println(h);
        } {
        	System.out.println(h);
        } System.out.println(h) System.out.println System.out System System.out h String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	}

}