 #include<iostream>
 #include<stdio.h>
 #include<string>
 #include<math.h>
 #include<iomanip>
 #include<algorithm>
 #include<string.h>
 #include<cctype>
 #include<map>
 #include<set>
 #include<vector>
 #include<sstream>
 
 using namespace std;
 
 int compare(int a,int b)
 {
   return a>b;    
 }

 int main()
 {
   int first,second,third;
   first=second=third=0;
   int arr[10];
   for(int i=0;i<10;i++) cin>>arr[i];
   sort(arr,arr+10,compare);
   first=arr[0];
   second=arr[1];
   third=arr[2];
   cout<<first<<endl;
   cout<<second<<endl;
   cout<<third<<endl;
   //while(1);      
   return 0;    
 }
 