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


int main()
{
	int i[10];
	cin >> i[1] >> i[2] >> i[3] >> i[4] >> i[5] >> i[6] >> i[7] >> i[8] >> i[9] >> i[10];
	sort(i, i+9);
	cout << i[9] << endl;
	cout << i[8] << endl;
	cout << i[7] << endl;

	return 0;
}