#include <iostream>
#include <string>
#include <vector>
using namespace std;

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