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

int main(){
  vector<int> v;
  int n;
  
  while(cin>>n){
    v.push_back(n);
  }

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

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

