#include <bits/stdc++.h>

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  int heights[10];
  for (int i = 0; i < 10; i ++) {
    cin >> heights[i];
  }
  sort(begin(heights), end(heights), greater<>());
  for (int i = 0; i < 3; i ++) {
    cout << heights[i] << endl;
  }
}
