#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
    int mount[10];

    for (int i = 0; i < 10; i++)
        cin >> mount[i];
    sort(mount, mount + 10);

    for (int i = 9; i > 6; i--)
        cout << mount[i] << '\n';

    return 0;
}