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

int main() {
  int a[10];
  for (auto& e : a) cin >> e;
  sort(a, a + 10);
  cout << a[9] << endl
       << a[8] << endl
       << a[7] << endl;
}