#include <iostream>
using namespace std;

int main()
{
	int high[10],copy;

	for(int i=0;i<10;i++)
		cin>>high[i];

	for(int i=0;i<10;i++)
		for(int j=0;j<10;j++)
			if(high[i]>high[j])
			{
				copy=high[i];
				high[i]=high[j];
				high[j]=copy;
			}
	cout<<high[0]<<endl<<high[1]<<endl<<high[2]<<endl;
}