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

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