#include<iostream>
using namespace std;

int main()
{
	unsigned high[3]={};
	for(int i=0; i<10; ++i)
	{
		int n;
		cin >> n;
		if(high[0]<n)
		{
			high[0]=n;
		}
		else if(high[1]<n)
		{
			high[1]=n;
		}
		else if(high[2]<n)
		{
			high[2]=n;
		}
	}
	cout << high[0] << high[1] << high[2] << endl;
}