#include<iostream>
#include<algorithm>
#include <vector>
#include<cmath>
#include<iomanip>
using namespace std;
typedef long long int lont;
int main() {
	vector<int>veca(10);
	for (int ia = 0; ia < 10; ia++) {
		cin >> veca.at(ia);
	}
	sort(veca.begin(), veca.end());
	reverse(veca.begin(), veca.end());
	for (int ib = 0; ib < 3; ib++) {
		cout << veca.at(ib) << endl;
	}
}

