import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	} main {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int nums[] = new int[10]; nums new int[10] 10 for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt(); byte i = 0; byte i = 0; i 0 i < 10 i 10 i++ i++ i nums[i] = in.nextInt(); nums[i] = in.nextInt() nums[i] nums i in.nextInt() in.nextInt in Arrays.sort(nums) Arrays.sort Arrays nums System.out.println(nums[9]) System.out.println System.out System System.out nums[9] nums 9 System.out.println(nums[8]) System.out.println System.out System System.out nums[8] nums 8 System.out.println(nums[7]) System.out.println System.out System System.out nums[7] nums 7 in.close() in.close in String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	}
}