#include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
using namespace std;

// List of Top 3 Hills(0001)
int main()
{
	vector<int> dat(10);
	for (int i = 0; i < 10; ++i)
		cin >> dat[i];

	sort(dat.begin(), dat.end(), greater<int>());
	
	for (int i = 0; i < 3; ++i)
		cout << dat[i] << endl;

	return 0;
}