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

class Main{
	public static void main(String[] a)throws ParseException , IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in ));
		Integer[] mountainHeight = new Integer[10];
	for (int i = 0 ; i <= 9 ; i++) {
mountainHeight[i] = Integer.valueOf(br.readLine());
	}
	Arrays.sort(mountainHeight , Collections.reverseOrder());
	
	for(int i = 0; i < 3 ; i++){
		System.out.println(mountainHeight[i]);
	}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.text.ParseException; ParseException java.text import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util class Main{
	public static void main(String[] a)throws ParseException , IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in ));
		Integer[] mountainHeight = new Integer[10];
	for (int i = 0 ; i <= 9 ; i++) {
mountainHeight[i] = Integer.valueOf(br.readLine());
	}
	Arrays.sort(mountainHeight , Collections.reverseOrder());
	
	for(int i = 0; i < 3 ; i++){
		System.out.println(mountainHeight[i]);
	}
	}
} Main public static void main(String[] a)throws ParseException , IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in ));
		Integer[] mountainHeight = new Integer[10];
	for (int i = 0 ; i <= 9 ; i++) {
mountainHeight[i] = Integer.valueOf(br.readLine());
	}
	Arrays.sort(mountainHeight , Collections.reverseOrder());
	
	for(int i = 0; i < 3 ; i++){
		System.out.println(mountainHeight[i]);
	}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in ));
		Integer[] mountainHeight = new Integer[10];
	for (int i = 0 ; i <= 9 ; i++) {
mountainHeight[i] = Integer.valueOf(br.readLine());
	}
	Arrays.sort(mountainHeight , Collections.reverseOrder());
	
	for(int i = 0; i < 3 ; i++){
		System.out.println(mountainHeight[i]);
	}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in )); br new BufferedReader(new InputStreamReader(System.in )) Integer[] mountainHeight = new Integer[10]; mountainHeight new Integer[10] 10 for (int i = 0 ; i <= 9 ; i++) {
mountainHeight[i] = Integer.valueOf(br.readLine());
	} int i = 0 ; int i = 0 ; i 0 i <= 9 i 9 i++ i++ i {
mountainHeight[i] = Integer.valueOf(br.readLine());
	} {
mountainHeight[i] = Integer.valueOf(br.readLine());
	} mountainHeight[i] = Integer.valueOf(br.readLine()) mountainHeight[i] mountainHeight i Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br Arrays.sort(mountainHeight , Collections.reverseOrder()) Arrays.sort Arrays mountainHeight Collections.reverseOrder() Collections.reverseOrder Collections for(int i = 0; i < 3 ; i++){
		System.out.println(mountainHeight[i]);
	} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
		System.out.println(mountainHeight[i]);
	} {
		System.out.println(mountainHeight[i]);
	} System.out.println(mountainHeight[i]) System.out.println System.out System System.out mountainHeight[i] mountainHeight i String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.util.Arrays;
import java.util.Collections;

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