#include <iostream>
using namespace std;

int main()
{
	int n, i , a[10];
	n=10;
	for (i=1;i<=n;i++) cin >>a[i];
	int j,tam;
	for (i=1;i<=n-1;i++)
	 for (j=i+1;j<=n;j++)
		 if (a[i]<a[j]) { tam=a[i];a[i]=a[j];a[j]=tam;}
	cout << a[1] << endl;
	cout << a[2] << endl;
	cout << a[3] << endl;
	return 0;
}