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

public class Main {
	public static void main(String[] args){
		int[] input = new int[10];
		Scanner s = new Scanner(System.in);
		for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		}
		
		Arrays.sort(input);
		int i=input.length-1;
		while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		}			
	}
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		int[] input = new int[10];
		Scanner s = new Scanner(System.in);
		for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		}
		
		Arrays.sort(input);
		int i=input.length-1;
		while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		}			
	}
} Main public static void main(String[] args){
		int[] input = new int[10];
		Scanner s = new Scanner(System.in);
		for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		}
		
		Arrays.sort(input);
		int i=input.length-1;
		while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		}			
	} main {
		int[] input = new int[10];
		Scanner s = new Scanner(System.in);
		for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		}
		
		Arrays.sort(input);
		int i=input.length-1;
		while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		}			
	} int[] input = new int[10]; input new int[10] 10 Scanner s = new Scanner(System.in); s new Scanner(System.in) for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		} {
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		} input[i]=s.nextInt() input[i] input i s.nextInt() s.nextInt s Arrays.sort(input) Arrays.sort Arrays input int i=input.length-1; i input.length-1 input.length input input.length 1 while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		} i>input.length-4 i input.length-4 input.length input input.length 4 {
			System.out.println(input[i]);
			i--;
		} System.out.println(input[i]) System.out.println System.out System System.out input[i] input i i-- i String[] args args public class Main {
	public static void main(String[] args){
		int[] input = new int[10];
		Scanner s = new Scanner(System.in);
		for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		}
		
		Arrays.sort(input);
		int i=input.length-1;
		while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		}			
	}
} public class Main {
	public static void main(String[] args){
		int[] input = new int[10];
		Scanner s = new Scanner(System.in);
		for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		}
		
		Arrays.sort(input);
		int i=input.length-1;
		while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		}			
	}
} Main

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

public class Main {
	public static void main(String[] args){
		int[] input = new int[10];
		Scanner s = new Scanner(System.in);
		for(int i=0; i<10; i++){
			//System.out.println("Please input the "+ (i+1) +"th number(integer)");
			input[i]=s.nextInt();
		}
		
		Arrays.sort(input);
		int i=input.length-1;
		while(i>input.length-4){
			System.out.println(input[i]);
			i--;
		}			
	}
}