#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>

using namespace std;


int main()
{
	int a[11],b=10;
	while (b--) {
		cin >> a[b];
	}
	sort(a, a + 11);
	cout << a[10] << endl << a[9] << endl << a[8] << endl;
	return (0);
}