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

using namespace std;

int main(){

  vector<int> mountain;
  int height;

  for(int i=0; i<10; i++){
    cin >> height;
    mountain.push_back(height);
  }

  sort(mountain.begin(),mountain.end(), greater<int>());

  for(int i=0; i<3; i++){
    cout << mountain[i] << endl;
  }
  return 0;
}