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

using namespace std;

int main(void) {
	vector<int> hoge = vector<int>(10);
	for (int i = 0; i < 10;++i) {
		cin >> hoge[i];
	}
	sort(hoge.begin(), hoge.end(), greater<int>());
	for (int i = 0; i < 3;++i) {
		cout << hoge[i] << endl;
	}

	return 0;
}