#include<iostream>
#include<algorithm>
#include<vector>

#define pb push_back
  
using namespace std;

int main(void){
  int n;
  vector<int> height;

  for(int i = 0;i < 10;i++){
    cin >> n;
    height.pb(n);
  }
  sort(height.begin() , height.end());
  
  for(int i = 9; i > 6;i--){
    cout << height.at(i) << endl;
  }  
  return 0;
}