#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
  vector<int> mountain;
  int m=0;
  for(int i=0;i<10;i++){
    cin>>m;
    mountain.push_back(m);
  }
  sort(mountain.begin(),mountain.end(),greater<int>());
  
  for(int i=0;i<3;i++)
    cout<<mountain[i]<<endl;

  return 0;
}

