import java.io.*;

public class Main {

	public static void main(String[] args) throws Exception {
		int[] height = new int[10];
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		}
		int length = height.length;
		for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(height[i]);
		}

	}

} import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws Exception {
		int[] height = new int[10];
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		}
		int length = height.length;
		for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(height[i]);
		}

	}

} Main public static void main(String[] args) throws Exception {
		int[] height = new int[10];
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		}
		int length = height.length;
		for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(height[i]);
		}

	} main {
		int[] height = new int[10];
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		}
		int length = height.length;
		for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(height[i]);
		}

	} int[] height = new int[10]; height new int[10] 10 BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		} {
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		} int a = Integer.parseInt(in.readLine()); a Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in height[i] = a height[i] height i a int length = height.length; length height.length height height.length for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		} int i=0; int i=0; i 0 i<length i length i++ i++ i {
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		} {
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		} for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			} int j=(i+1); int j=(i+1); j (i+1) i 1 j<length j length j++ j++ j {
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			} {
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			} if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				} height[i]<height[j] height[i] height i height[j] height j {
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				} int temp = height[j]; temp height[j] height j height[j] = height[i] height[j] height j height[i] height i height[i] = temp height[i] height i temp for(int i=0;i<3;i++){
			System.out.println(height[i]);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			System.out.println(height[i]);
		} {
			System.out.println(height[i]);
		} System.out.println(height[i]) System.out.println System.out System System.out height[i] height i String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		int[] height = new int[10];
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		}
		int length = height.length;
		for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(height[i]);
		}

	}

} public class Main {

	public static void main(String[] args) throws Exception {
		int[] height = new int[10];
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		}
		int length = height.length;
		for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(height[i]);
		}

	}

} Main
import java.io.*;

public class Main {

	public static void main(String[] args) throws Exception {
		int[] height = new int[10];
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		for(int i=0;i<10;i++){
			int a = Integer.parseInt(in.readLine());
			height[i] = a;
		}
		int length = height.length;
		for(int i=0;i<length;i++){
			for(int j=(i+1);j<length;j++){
				if(height[i]<height[j]){
					int temp = height[j];
					height[j] = height[i];
					height[i] = temp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(height[i]);
		}

	}

}