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

public class Main {
	public static void main(String[]args){
		
			Scanner scan = new Scanner(System.in);
			int i = 0;
			int a =0;
			Integer b[]=new Integer[10];
		
			
		for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			}	
			
		
		 
		for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		}
		

	
}
} import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args){
		
			Scanner scan = new Scanner(System.in);
			int i = 0;
			int a =0;
			Integer b[]=new Integer[10];
		
			
		for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			}	
			
		
		 
		for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		}
		

	
}
} Main public static void main(String[]args){
		
			Scanner scan = new Scanner(System.in);
			int i = 0;
			int a =0;
			Integer b[]=new Integer[10];
		
			
		for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			}	
			
		
		 
		for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		}
		

	
} main {
		
			Scanner scan = new Scanner(System.in);
			int i = 0;
			int a =0;
			Integer b[]=new Integer[10];
		
			
		for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			}	
			
		
		 
		for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		}
		

	
} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int i = 0; i 0 int a =0; a 0 Integer b[]=new Integer[10]; b new Integer[10] 10 for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			} i=0; i=0 i 0 i<10 i 10 i++ i++ i {
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			} {
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			} a = scan.nextInt() a scan.nextInt() scan.nextInt scan b[i]=a b[i] b i a for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		} int j =0; int j =0; j 0 j<3 j 3 j++ j++ j {
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		} {
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		} Arrays.sort(b, Collections.reverseOrder()) Arrays.sort Arrays b Collections.reverseOrder() Collections.reverseOrder Collections System.out.println(b[j]) System.out.println System.out System System.out b[j] b j String[]args args public class Main {
	public static void main(String[]args){
		
			Scanner scan = new Scanner(System.in);
			int i = 0;
			int a =0;
			Integer b[]=new Integer[10];
		
			
		for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			}	
			
		
		 
		for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		}
		

	
}
} public class Main {
	public static void main(String[]args){
		
			Scanner scan = new Scanner(System.in);
			int i = 0;
			int a =0;
			Integer b[]=new Integer[10];
		
			
		for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			}	
			
		
		 
		for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		}
		

	
}
} Main

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

public class Main {
	public static void main(String[]args){
		
			Scanner scan = new Scanner(System.in);
			int i = 0;
			int a =0;
			Integer b[]=new Integer[10];
		
			
		for(i=0;i<10;i++){
			//System.out.println("????????\?????????????????????");
			a = scan.nextInt();
			b[i]=a;
			
			}	
			
		
		 
		for(int j =0;j<3;j++){
			Arrays.sort(b, Collections.reverseOrder());

			System.out.println(b[j]);

			
		}
		

	
}
}