#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  vector<int> high(10);
  for(int i=0; i<10; i++) cin >>high[i];
  sort(high.begin(), high.end());
  for(int i=9; i>=7; i--) cout <<high[i]<<endl;
  return 0;
}