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

class Main {

	private static int[] data = new int[10];

	public static void main(String args[]) {
		

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			
			for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			}
			
			
		}catch (IOException e) {
			
		}
		
		Arrays.sort(data);
		
		for(int i=9; i>6; i--) {
			System.out.println(data[i]);
		}
		
		
		
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util class Main {

	private static int[] data = new int[10];

	public static void main(String args[]) {
		

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			
			for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			}
			
			
		}catch (IOException e) {
			
		}
		
		Arrays.sort(data);
		
		for(int i=9; i>6; i--) {
			System.out.println(data[i]);
		}
		
		
		
	}
} Main private static int[] data = new int[10]; data new int[10] 10 public static void main(String args[]) {
		

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			
			for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			}
			
			
		}catch (IOException e) {
			
		}
		
		Arrays.sort(data);
		
		for(int i=9; i>6; i--) {
			System.out.println(data[i]);
		}
		
		
		
	} main {
		

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			
			for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			}
			
			
		}catch (IOException e) {
			
		}
		
		Arrays.sort(data);
		
		for(int i=9; i>6; i--) {
			System.out.println(data[i]);
		}
		
		
		
	} BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) try{
			
			for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			}
			
			
		}catch (IOException e) {
			
		} catch (IOException e) {
			
		} IOException e {
			
		} {
			
			for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			}
			
			
		} for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			} {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			} String s = input.readLine(); s input.readLine() input.readLine input data[i] = Integer.parseInt(s) data[i] data i Integer.parseInt(s) Integer.parseInt Integer s Arrays.sort(data) Arrays.sort Arrays data for(int i=9; i>6; i--) {
			System.out.println(data[i]);
		} int i=9; int i=9; i 9 i>6 i 6 i-- i-- i {
			System.out.println(data[i]);
		} {
			System.out.println(data[i]);
		} System.out.println(data[i]) System.out.println System.out System System.out data[i] data i String args[] args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {

	private static int[] data = new int[10];

	public static void main(String args[]) {
		

		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			
			for(int i=0; i<10; i++) {
				
				String s = input.readLine();
				
				data[i] = Integer.parseInt(s);
			}
			
			
		}catch (IOException e) {
			
		}
		
		Arrays.sort(data);
		
		for(int i=9; i>6; i--) {
			System.out.println(data[i]);
		}
		
		
		
	}
}