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

public class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int[] data = new int[10];
		for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		}
		
		Arrays.sort(data);
		
		for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		}
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int[] data = new int[10];
		for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		}
		
		Arrays.sort(data);
		
		for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		}
	}
} Main public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int[] data = new int[10];
		for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		}
		
		Arrays.sort(data);
		
		for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		}
	} main {
		Scanner stdIn = new Scanner(System.in);
		int[] data = new int[10];
		for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		}
		
		Arrays.sort(data);
		
		for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int[] data = new int[10]; data new int[10] 10 for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			data[i] = stdIn.nextInt();
		} {
			data[i] = stdIn.nextInt();
		} data[i] = stdIn.nextInt() data[i] data i stdIn.nextInt() stdIn.nextInt stdIn Arrays.sort(data) Arrays.sort Arrays data for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		} int i=data.length-1; int i=data.length-1; i data.length-1 data.length data data.length 1 i>=data.length-3 i data.length-3 data.length data data.length 3 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 public class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int[] data = new int[10];
		for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		}
		
		Arrays.sort(data);
		
		for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int[] data = new int[10];
		for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		}
		
		Arrays.sort(data);
		
		for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		}
	}
} Main

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

public class Main{
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int[] data = new int[10];
		for(int i=0;i<10;i++){
			data[i] = stdIn.nextInt();
		}
		
		Arrays.sort(data);
		
		for(int i=data.length-1;i>=data.length-3;i--){
			System.out.println(data[i]);
		}
	}
}