///*
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main() {
	
	vector<int> mountain(10);
	for (int number = 0; number < 10; number++)cin >> mountain[number];
	
	sort(mountain.rbegin(), mountain.rend());

	for (int number = 0; number != 3; number++)cout << mountain[number] << endl;

	return 0;
}
//*/
