import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args)throws IOException {
		
		int i=0,j=0;
		int[] mount = new int[10];
		int[] h_mount = {0,0,0};
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
				
		while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		}
		
		sortMethod(mount,10);
		for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		}


	}
	
	public static void sortMethod(int[] array,int num){
		int tmp;
		int x,y;
		for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args)throws IOException {
		
		int i=0,j=0;
		int[] mount = new int[10];
		int[] h_mount = {0,0,0};
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
				
		while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		}
		
		sortMethod(mount,10);
		for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		}


	}
	
	public static void sortMethod(int[] array,int num){
		int tmp;
		int x,y;
		for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		}
	}

} Main public static void main(String[] args)throws IOException {
		
		int i=0,j=0;
		int[] mount = new int[10];
		int[] h_mount = {0,0,0};
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
				
		while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		}
		
		sortMethod(mount,10);
		for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		}


	} main {
		
		int i=0,j=0;
		int[] mount = new int[10];
		int[] h_mount = {0,0,0};
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
				
		while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		}
		
		sortMethod(mount,10);
		for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		}


	} int i=0 i 0 j=0; j 0 int[] mount = new int[10]; mount new int[10] 10 int[] h_mount = {0,0,0}; h_mount {0,0,0} 0 0 0 String str; str BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		} i<10 i 10 {
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		} str=new String(in.readLine()) str new String(in.readLine()) mount[i]=Integer.parseInt(str) mount[i] mount i Integer.parseInt(str) Integer.parseInt Integer str if(mount[i]<0 || mount[i]>10000){
				i--;
			} mount[i]<0 || mount[i]>10000 mount[i]<0 mount[i] mount i 0 mount[i]>10000 mount[i] mount i 10000 {
				i--;
			} i-- i i++ i sortMethod(mount,10) sortMethod mount 10 for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		} i=0; i=0 i 0 i<3 i 3 i++ i++ i {
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		} {
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		} h_mount[i]=mount[i] h_mount[i] h_mount i mount[i] mount i System.out.println(h_mount[i]) System.out.println System.out System System.out h_mount[i] h_mount i String[] args args public static void sortMethod(int[] array,int num){
		int tmp;
		int x,y;
		for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		}
	} sortMethod {
		int tmp;
		int x,y;
		for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		}
	} int tmp; tmp int x x y; y for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		} x=0; x=0 x 0 x<num-1 x num-1 num 1 x++ x++ x {
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		} {
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		} for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			} y=x+1; y=x+1 y x+1 x 1 y<num y num y++ y++ y {
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			} {
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			} if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				} array[x]<array[y] array[x] array x array[y] array y {
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				} tmp = array[x] tmp array[x] array x array[x]=array[y] array[x] array x array[y] array y array[y]=tmp array[y] array y tmp int[] array array int num num public class Main {

	public static void main(String[] args)throws IOException {
		
		int i=0,j=0;
		int[] mount = new int[10];
		int[] h_mount = {0,0,0};
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
				
		while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		}
		
		sortMethod(mount,10);
		for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		}


	}
	
	public static void sortMethod(int[] array,int num){
		int tmp;
		int x,y;
		for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		}
	}

} public class Main {

	public static void main(String[] args)throws IOException {
		
		int i=0,j=0;
		int[] mount = new int[10];
		int[] h_mount = {0,0,0};
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
				
		while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		}
		
		sortMethod(mount,10);
		for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		}


	}
	
	public static void sortMethod(int[] array,int num){
		int tmp;
		int x,y;
		for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		}
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args)throws IOException {
		
		int i=0,j=0;
		int[] mount = new int[10];
		int[] h_mount = {0,0,0};
		String str;
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
				
		while(i<10){
			str=new String(in.readLine());
			mount[i]=Integer.parseInt(str);
			
			if(mount[i]<0 || mount[i]>10000){
				i--;
			}
			
			i++;
		}
		
		sortMethod(mount,10);
		for(i=0;i<3;i++){
			h_mount[i]=mount[i];
			System.out.println(h_mount[i]);
		}


	}
	
	public static void sortMethod(int[] array,int num){
		int tmp;
		int x,y;
		for(x=0;x<num-1;x++){
			for(y=x+1;y<num;y++){
				if(array[x]<array[y]){
					tmp = array[x];
					array[x]=array[y];
					array[y]=tmp;
				}
			}
		}
	}

}