#include <iostream>
#define N 10
using namespace std;
int main()
{
	int p[N];
	for (int i=0;i<N;i++)
		cin>>p[i];
	for (int n=0;n<N-1;n++)
		for (int m=n+1;m<N;m++)
			if (p[n]<p[m])
			{
				int temp=p[n];
				p[n]=p[m];
				p[m]=temp;
			}
			for (int k=0;k<3;k++)
				cout<<p[k]<<endl;
	return 0;
}