
import java.util.Scanner;
public class Main{
       public static void main(String[] args){
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		}
} import java.util.Scanner; Scanner java.util public class Main{
       public static void main(String[] args){
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		}
} Main public static void main(String[] args){
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		} main {
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		} int i; i int[] height = new int[10]; height new int[10] 10 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        } i = 0; i = 0 i 0 i < 10 i 10 i++ i++ i {
        height[i] = scan.nextInt();
        } {
        height[i] = scan.nextInt();
        } height[i] = scan.nextInt() height[i] height i scan.nextInt() scan.nextInt scan int st = 0 st 0 nd = 0 nd 0 rd = 0; rd 0 for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	} i = 0; i = 0 i 0 i < 10 i 10 i++ i++ i {
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	} {
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	} if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		} height[i]>=st height[i] height i st {
        		rd = nd;
        		nd = st;
        		st = height[i];
        		} rd = nd rd nd nd = st nd st st = height[i] st height[i] height i if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		} height[i]>=nd height[i] height i nd {
        		rd = nd ;
        		nd = height[i];
        		} rd = nd rd nd nd = height[i] nd height[i] height i if(height[i]>=rd){
        		rd = height[i];
        		
        		} height[i]>=rd height[i] height i rd {
        		rd = height[i];
        		
        		} rd = height[i] rd height[i] height i System.out.println(st) System.out.println System.out System System.out st System.out.println(nd) System.out.println System.out System System.out nd System.out.println(rd) System.out.println System.out System System.out rd String[] args args public class Main{
       public static void main(String[] args){
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		}
} public class Main{
       public static void main(String[] args){
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		}
} Main

import java.util.Scanner;
public class Main{
       public static void main(String[] args){
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		}
}