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

class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		Integer[] input = new Integer[10];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0; i<10; i++){
			input[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(input, Collections.reverseOrder());
		
		for(int i=0; i<3; i++){
			System.out.println(input[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 import java.util.Collections; Collections java.util class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		Integer[] input = new Integer[10];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0; i<10; i++){
			input[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(input, Collections.reverseOrder());
		
		for(int i=0; i<3; i++){
			System.out.println(input[i]);
		}
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException {
		Integer[] input = new Integer[10];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0; i<10; i++){
			input[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(input, Collections.reverseOrder());
		
		for(int i=0; i<3; i++){
			System.out.println(input[i]);
		}
	} main {
		Integer[] input = new Integer[10];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0; i<10; i++){
			input[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(input, Collections.reverseOrder());
		
		for(int i=0; i<3; i++){
			System.out.println(input[i]);
		}
	} Integer[] input = new Integer[10]; input new Integer[10] 10 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) for(int i=0; i<10; i++){
			input[i] = Integer.parseInt(br.readLine());
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			input[i] = Integer.parseInt(br.readLine());
		} {
			input[i] = Integer.parseInt(br.readLine());
		} input[i] = Integer.parseInt(br.readLine()) input[i] input i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(input, Collections.reverseOrder()) Arrays.sort Arrays input Collections.reverseOrder() Collections.reverseOrder Collections for(int i=0; i<3; i++){
			System.out.println(input[i]);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			System.out.println(input[i]);
		} {
			System.out.println(input[i]);
		} System.out.println(input[i]) System.out.println System.out System System.out input[i] input i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;

class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		Integer[] input = new Integer[10];
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0; i<10; i++){
			input[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(input, Collections.reverseOrder());
		
		for(int i=0; i<3; i++){
			System.out.println(input[i]);
		}
	}
}