#include <iostream>
#include <algorithm>
#include <functional>

using namespace std;

int main(void)
{
	int mt[10];

	

	for (int i = 0; i < 10; i++)
	{
		cin >> mt[i];
	}


	sort(mt, mt + 10, greater<int>());
	
	for (int i = 0; i < 3; i++)
	{
		cout << mt[i] << endl;
	}

	return 0;
}