#include<stdio.h>
#include<algorithm>
#include<functional> 
&#160;
using namespace std;
&#160;&#160;&#160;
int main(){
&#160;&#160;&#160;
&#160;int i, height[10];
&#160;for(i=0;i<10;i++){
&#160;&#160;scanf("%d", &height[i]);
&#160;}
&#160;sort(height, height+10, greater<int>());
&#160;&#160;&#160;
&#160;for(i=0;i<3;i++){
&#160;&#160;printf("%d\n", height[i]);
&#160;}
&#160;&#160;&#160;
&#160;return 0;
}