#include <iostream>

using namespace std;


int main(){
    
//		Scanner input = new Scanner(System.in);
		
		int temp;
		
//		int[] h = new int[10];
	
        int h[10];
        	
		for (int i=0;i<10;i++){
			cout<< "height of mountain " << (i+1) << ": " <<endl ;
			cin>>h[i];
            
         
		}
					for (int j=9;j>0;j--){
					for(int i=0;i<j;i++ )
					if (h[i]<h[i+1]){
						
						temp=h[i+1];
						
						h[i+1]=h[i];
						
						h[i]=temp;}
				}
				
				
                cout<< "heights of the 1st mountain is :" << h[0]<<endl;
                cout<< "heights of the 2nd mountain is :" << h[1]<<endl;
                cout<< "heights of the 3rd mountain is :" << h[2]<<endl;
					

					return 0;
					
                }