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

class Main {
	public String[] inputMountain = new String[10];
	public int[] mountain = new int[10];
	
	public static void main(String args[])throws IOException{
		int i;
		Main app = new Main();
		
		app.input();
		app.stringToInteger();
		app.sortMountain();
		app.output();
	}
	
	public void input()throws IOException{
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		int i;
		for(i=0;i<10;i++)
			inputMountain[i] = br.readLine();
	}
	
	public void stringToInteger(){
		int i;
		for(i=0;i<10;i++)
			mountain[i] = Integer.parseInt(inputMountain[i]);
	}
	
	public void sortMountain(){
		int i,j,t;
		
		for(i=0;i<9;i++){
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		}
	}
	
	public void output(){
		int i;
		for(i=9;i>6;i--)
			System.out.println(mountain[i]);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public String[] inputMountain = new String[10];
	public int[] mountain = new int[10];
	
	public static void main(String args[])throws IOException{
		int i;
		Main app = new Main();
		
		app.input();
		app.stringToInteger();
		app.sortMountain();
		app.output();
	}
	
	public void input()throws IOException{
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		int i;
		for(i=0;i<10;i++)
			inputMountain[i] = br.readLine();
	}
	
	public void stringToInteger(){
		int i;
		for(i=0;i<10;i++)
			mountain[i] = Integer.parseInt(inputMountain[i]);
	}
	
	public void sortMountain(){
		int i,j,t;
		
		for(i=0;i<9;i++){
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		}
	}
	
	public void output(){
		int i;
		for(i=9;i>6;i--)
			System.out.println(mountain[i]);
	}
} Main public String[] inputMountain = new String[10]; inputMountain new String[10] 10 public int[] mountain = new int[10]; mountain new int[10] 10 public static void main(String args[])throws IOException{
		int i;
		Main app = new Main();
		
		app.input();
		app.stringToInteger();
		app.sortMountain();
		app.output();
	} main {
		int i;
		Main app = new Main();
		
		app.input();
		app.stringToInteger();
		app.sortMountain();
		app.output();
	} int i; i Main app = new Main(); app new Main() app.input() app.input app app.stringToInteger() app.stringToInteger app app.sortMountain() app.sortMountain app app.output() app.output app String args[] args public void input()throws IOException{
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		int i;
		for(i=0;i<10;i++)
			inputMountain[i] = br.readLine();
	} input {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		int i;
		for(i=0;i<10;i++)
			inputMountain[i] = br.readLine();
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) int i; i for(i=0;i<10;i++)
			inputMountain[i] = br.readLine(); i=0; i=0 i 0 i<10 i 10 i++ i++ i inputMountain[i] = br.readLine(); inputMountain[i] = br.readLine() inputMountain[i] inputMountain i br.readLine() br.readLine br public void stringToInteger(){
		int i;
		for(i=0;i<10;i++)
			mountain[i] = Integer.parseInt(inputMountain[i]);
	} stringToInteger {
		int i;
		for(i=0;i<10;i++)
			mountain[i] = Integer.parseInt(inputMountain[i]);
	} int i; i for(i=0;i<10;i++)
			mountain[i] = Integer.parseInt(inputMountain[i]); i=0; i=0 i 0 i<10 i 10 i++ i++ i mountain[i] = Integer.parseInt(inputMountain[i]); mountain[i] = Integer.parseInt(inputMountain[i]) mountain[i] mountain i Integer.parseInt(inputMountain[i]) Integer.parseInt Integer inputMountain[i] inputMountain i public void sortMountain(){
		int i,j,t;
		
		for(i=0;i<9;i++){
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		}
	} sortMountain {
		int i,j,t;
		
		for(i=0;i<9;i++){
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		}
	} int i i j j t; t for(i=0;i<9;i++){
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		} i=0; i=0 i 0 i<9 i 9 i++ i++ i {
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		} {
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		} for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			} j=9; j=9 j 9 j>i j i j-- j-- j {
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			} {
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			} if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				} mountain[j]<mountain[j-1] mountain[j] mountain j mountain[j-1] mountain j-1 j 1 {
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				} t = mountain[j] t mountain[j] mountain j mountain[j] = mountain[j-1] mountain[j] mountain j mountain[j-1] mountain j-1 j 1 mountain[j-1] = t mountain[j-1] mountain j-1 j 1 t public void output(){
		int i;
		for(i=9;i>6;i--)
			System.out.println(mountain[i]);
	} output {
		int i;
		for(i=9;i>6;i--)
			System.out.println(mountain[i]);
	} int i; i for(i=9;i>6;i--)
			System.out.println(mountain[i]); i=9; i=9 i 9 i>6 i 6 i-- i-- i System.out.println(mountain[i]); System.out.println(mountain[i]) System.out.println System.out System System.out mountain[i] mountain i
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public String[] inputMountain = new String[10];
	public int[] mountain = new int[10];
	
	public static void main(String args[])throws IOException{
		int i;
		Main app = new Main();
		
		app.input();
		app.stringToInteger();
		app.sortMountain();
		app.output();
	}
	
	public void input()throws IOException{
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		int i;
		for(i=0;i<10;i++)
			inputMountain[i] = br.readLine();
	}
	
	public void stringToInteger(){
		int i;
		for(i=0;i<10;i++)
			mountain[i] = Integer.parseInt(inputMountain[i]);
	}
	
	public void sortMountain(){
		int i,j,t;
		
		for(i=0;i<9;i++){
			for(j=9;j>i;j--){
				if(mountain[j]<mountain[j-1]){
					t = mountain[j];
					mountain[j] = mountain[j-1];
					mountain[j-1] = t;
				}
			}
		}
	}
	
	public void output(){
		int i;
		for(i=9;i>6;i--)
			System.out.println(mountain[i]);
	}
}