#include<cstdio>
#include<deque>
#include<algorithm>
using namespace std;
main(){
	int n,i;
	deque<int>h;
	while(~scanf("%d",&n))
		h.push_back(n);
	sort(h.begin(),h.end());
	for(i=9;i>6;)
		printf("%d\n",h[i--]);
}