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

int main() {
    array<int, 10> ar;
    for (auto& e : ar) {
        cin >> e;
    }
    sort(ar.begin(), ar.end(), greater<int>());
    for (int i = 0; i < 3; i++) {
        cout << ar[i] << endl;
    }
    return 0;
}