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

using namespace std;

int main() {
  int tmp;
  vector<int> heights;

  for(int i=0; i<10; i++) {
    cin>>tmp;
    heights.push_back(tmp);
  }
  sort(heights.begin(), heights.end(), greater<int>());
  cout<<heights[0]<<endl<<heights[1]<<endl<<heights[2]<<endl;
}