#include <bits/stdc++.h>

using namespace std;

int main()
{
    int m[10];

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

    sort(m, m + 10, greater<int>());

    for (int i = 0; i < 3; ++i) cout << m[i] << endl;
}