#include <functional>
#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <queue>
#include <string>
#include <cstring>
#include <math.h>
using namespace std;


int main() {

   int a[10];
  
  for(int i = 0;i<10;i++){
     
    cin >> a[i];

   }
  
  sort(a, a + 10, greater<int>()); 
  
   cout << a[0] << endl;
  cout << a[1] << endl;
  cout << a[2] << endl;
   
  return 0;
}
