#include<stdio.h>
#include<algorithm>
int main(){
	int i,height[10]={};
	for(i=0;i<=9;i++){
		scanf("%d",&height[i]);
	}
	std::sort(height,height+10);
	for(i=9;i>=7;i--){
		printf("%d\n",height[i]);
	}
	return 0;

}