#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main(void){
	vector<int> table;

	for(int hight; cin >> hight; table.push_back(hight));

	sort(table.begin(), table.end());

	for(int i = 9; i > 6; i --) cout << table[i] << endl;

	return 0;
}