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

int main() {
	multiset<int, greater<int>> mul;
	int itr = 0; int temp;
	while (cin >> temp) { mul.insert(temp); }
	for (auto x : mul) { 
		cout << x << endl; itr++;
		if (itr == 3) break;
	}
	return 0;
}
