#include <iostream>
#include <algorithm>
using namespace std;
bool cmp(int a,int b){return a>b;}
int main(){
int a[10];
for(int i=0;i<10;i++)
cin>>a[i];
sort(a,a+10,cmp);
cout<<a[0]<<endl<<a[1]<<endl<<a[2]<<endl;



}