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



public class Main {

	
	
	public static void main(String[] args) throws IOException{
    
	int[] mountainList = new int[10];
	
	String line = "";
		
	
	BufferedReader br = null;
			
	try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	Arrays.sort(mountainList);
	for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	}
	}

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

	
	
	public static void main(String[] args) throws IOException{
    
	int[] mountainList = new int[10];
	
	String line = "";
		
	
	BufferedReader br = null;
			
	try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	Arrays.sort(mountainList);
	for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	}
	}

} Main public static void main(String[] args) throws IOException{
    
	int[] mountainList = new int[10];
	
	String line = "";
		
	
	BufferedReader br = null;
			
	try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	Arrays.sort(mountainList);
	for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	}
	} main {
    
	int[] mountainList = new int[10];
	
	String line = "";
		
	
	BufferedReader br = null;
			
	try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	Arrays.sort(mountainList);
	for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	}
	} int[] mountainList = new int[10]; mountainList new int[10] 10 String line = ""; line "" BufferedReader br = null; br null try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} FileNotFoundException e {
		// TODO Auto-generated catch block
		e.printStackTrace();
	} e.printStackTrace() e.printStackTrace e {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		} int i = 0; int i = 0; i 0 i<10 i 10 i++ i++ i {
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		} {
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		} line = br.readLine() line br.readLine() br.readLine br mountainList[i] = Integer.parseInt(line) mountainList[i] mountainList i Integer.parseInt(line) Integer.parseInt Integer line Arrays.sort(mountainList) Arrays.sort Arrays mountainList for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	} int j=0; int j=0; j 0 j>-3 j -3 3 j-- j-- j {
		System.out.println(mountainList[j+9]);
		
	} {
		System.out.println(mountainList[j+9]);
		
	} System.out.println(mountainList[j+9]) System.out.println System.out System System.out mountainList[j+9] mountainList j+9 j 9 String[] args args public class Main {

	
	
	public static void main(String[] args) throws IOException{
    
	int[] mountainList = new int[10];
	
	String line = "";
		
	
	BufferedReader br = null;
			
	try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	Arrays.sort(mountainList);
	for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	}
	}

} public class Main {

	
	
	public static void main(String[] args) throws IOException{
    
	int[] mountainList = new int[10];
	
	String line = "";
		
	
	BufferedReader br = null;
			
	try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	Arrays.sort(mountainList);
	for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	}
	}

} Main
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;



public class Main {

	
	
	public static void main(String[] args) throws IOException{
    
	int[] mountainList = new int[10];
	
	String line = "";
		
	
	BufferedReader br = null;
			
	try {
		br = new BufferedReader(new InputStreamReader(System.in));
		for(int i = 0;i<10;i++){
			line = br.readLine();
			mountainList[i] = Integer.parseInt(line);
				
		}
		
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	Arrays.sort(mountainList);
	for(int j=0;j>-3;j--){
		System.out.println(mountainList[j+9]);
		
	}
	}

}