#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, greater<int>());
    cout<<mount[0]<<endl<<mount[1]<<endl<<mount[2]<<endl;
    return 0;
}
