#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a[10];
  for ( int i = 0; i < 10; i++ ) cin >> a[i];
  sort(a,a+10);
  reverse(a,a+10);
  cout << a[0] << endl;
  cout << a[1] << endl;
  cout << a[2] << endl;
  return 0;
}