#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main()
{
    int montes[10];
    for (int i=0;i<10;i++){
    cin>>montes[i];}
    vector<int> montanas (montes, montes+10);
    sort (montanas.begin(), montanas.end());
    for (int i=9;i>6;i--){
    cout<<montanas[i]<<endl;}

    return 0;
}