#include<iostream>  
#define element 10  
  
using namespace std;  
  
int height[element];  
int number;  
int main()  
{  
 for(int i=0;i<element;++i)  
 {  
  cin >> height[i];  
 }  
 for(int i=0;i<element;++i)  
 {  
  for(int j=i;j<element;++j)  
  {  
   if(height[i]<height[j])  
   {  
    number = height[i];  
    height[i] = height[j];  
    height[j] = number;  
   }  
  }  
 }  
 printf("\n%d\n%d\n%d\n",height[0],height[1],height[2]);  
 return 0;  
}  