#include <iostream>                                             
#include <algorithm>                                            
#define N 10                                                    
using namespace std;                                            
                                                                
int main(void) {                                                
  int height[10];                                               
  for (int i=0; i<N; i++) {                                     
    cin >> height[i];                                           
  }                                                             
  sort(height,height+N);                                        
  reverse(height,height+N);                                     
  for (int i=0; i<3; i++) {                                     
    cout << height[i] << endl;                                  
  }                                                             
  return 0;                                                     
}                         