#include <iostream>
#include <algorithm>
using namespace std;

int heights[10];

int main(){
for(auto i:heights){
cin>>i;
}

sort(&heights[0],&heights[9]+1);

for(int i=0;i<3;i++){
cout<<heights[9-i]<<endl;
}

return 0;
}
