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

using namespace std;

vector<int> input(){
	vector<int> hills = vector<int>(10);
	
	for (int i = 0; i < 10; i++) cin >> hills[i];
	
	return hills;
}

void output(vector<int> hills){
	for (int i = 0; i < 3; i++) cout << hills[i] << endl;
}

int main(){
	vector<int> hills;
	
	hills = input();
	sort(hills.begin(), hills.end(), greater<int>());
	output(hills);
	
	return 0;
}
