import java.io.*;
class Main{
	public static int height[]=new int[10];
	public static void liner(){
		int num;
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=Integer.parseInt(in.readLine());
		}
				
		liner();
	}
} import java.io.*; io.* java class Main{
	public static int height[]=new int[10];
	public static void liner(){
		int num;
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=Integer.parseInt(in.readLine());
		}
				
		liner();
	}
} Main public static int height[]=new int[10]; height new int[10] 10 public static void liner(){
		int num;
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	} liner {
		int num;
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	} int num; num for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		} int i=0; int i=0; i 0 i<=9 i 9 i++ i++ i {
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		} {
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		} for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			} int j=i+1; int j=i+1; j i+1 i 1 j<=9 j 9 j++ j++ j {
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			} {
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			} if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				} height[i]<=height[j] height[i] height i height[j] height j {
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				} num=height[i] num height[i] height i height[i]=height[j] height[i] height i height[j] height j height[j]=num height[j] height j num for(int i=0;i<=2;i++)
			System.out.println(height[i]); int i=0; int i=0; i 0 i<=2 i 2 i++ i++ i System.out.println(height[i]); System.out.println(height[i]) System.out.println System.out System System.out height[i] height i public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=Integer.parseInt(in.readLine());
		}
				
		liner();
	} main {
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=Integer.parseInt(in.readLine());
		}
				
		liner();
	} BufferedReader in =new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) for(int i=0;i<=9;i++){
			height[i]=Integer.parseInt(in.readLine());
		} int i=0; int i=0; i 0 i<=9 i 9 i++ i++ i {
			height[i]=Integer.parseInt(in.readLine());
		} {
			height[i]=Integer.parseInt(in.readLine());
		} height[i]=Integer.parseInt(in.readLine()) height[i] height i Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in liner() liner String[] a a
import java.io.*;
class Main{
	public static int height[]=new int[10];
	public static void liner(){
		int num;
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=Integer.parseInt(in.readLine());
		}
				
		liner();
	}
}