#include <iostream>
#include <algorithm>
using namespace std;
int main(){
  int n[10];
  for(int i = 0; i < 10; i++) cin >> n[i];
  sort( n, n+10, greater<int>());
  cout << n[0] << endl;
  cout << n[1] << endl;
  cout << n[2] << endl;
  return 0;
}