#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
    int i, a, b, c, height[12];

    for(i=1; i<=10; i++)
        cin>>height[i];

    sort(height+1, height+11);

    for(i=10; i>=8; i--)
        cout<<height[i]<<endl;

    return 0;
}