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

class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] height = new int[10];
		
		for (int i = 0; i < 10; i++){
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		}
		
		Arrays.sort(height);
		
		System.out.println(height[height.length-1]);
		System.out.println(height[height.length-2]);
		System.out.println(height[height.length-3]);
	}
} 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 {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] height = new int[10];
		
		for (int i = 0; i < 10; i++){
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		}
		
		Arrays.sort(height);
		
		System.out.println(height[height.length-1]);
		System.out.println(height[height.length-2]);
		System.out.println(height[height.length-3]);
	}
} Main public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] height = new int[10];
		
		for (int i = 0; i < 10; i++){
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		}
		
		Arrays.sort(height);
		
		System.out.println(height[height.length-1]);
		System.out.println(height[height.length-2]);
		System.out.println(height[height.length-3]);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] height = new int[10];
		
		for (int i = 0; i < 10; i++){
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		}
		
		Arrays.sort(height);
		
		System.out.println(height[height.length-1]);
		System.out.println(height[height.length-2]);
		System.out.println(height[height.length-3]);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] height = new int[10]; height new int[10] 10 for (int i = 0; i < 10; i++){
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		} {
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		} String s = br.readLine(); s br.readLine() br.readLine br height[i] = Integer.parseInt(s) height[i] height i Integer.parseInt(s) Integer.parseInt Integer s Arrays.sort(height) Arrays.sort Arrays height System.out.println(height[height.length-1]) System.out.println System.out System System.out height[height.length-1] height height.length-1 height.length height height.length 1 System.out.println(height[height.length-2]) System.out.println System.out System System.out height[height.length-2] height height.length-2 height.length height height.length 2 System.out.println(height[height.length-3]) System.out.println System.out System System.out height[height.length-3] height height.length-3 height.length height height.length 3 String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] height = new int[10];
		
		for (int i = 0; i < 10; i++){
			String s = br.readLine();
			height[i] = Integer.parseInt(s);
		}
		
		Arrays.sort(height);
		
		System.out.println(height[height.length-1]);
		System.out.println(height[height.length-2]);
		System.out.println(height[height.length-3]);
	}
}