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