#include <iostream>

using namespace std;

int main()
{
    int array [10];//={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
    int tmp=0;
    for (int i=0;i<10;i++)
    {
        cout<<"height of mountain "<<i+1<<" ";
        cin>> array[i];
    }
    for (int i=9;i>=0;i--)
    {
        for (int j=0;j<i;j++)
        {
            if (array[i] > array[j] )
                {
                    tmp = array[i];
                    array[i] = array[j];
                    array[j] = tmp;
                }
        }
    }
    cout<<array[0]<<endl;
    cout<<array[1]<<endl;
    cout<<array[2]<<endl;
    return 0;
}