#include <iostream>
#include <queue>

using namespace std;

int main(){

	priority_queue<int> pq;
	for(int i = 0; i < 10; i++){
		int tmp;
		cin >> tmp;
		pq.push(tmp);
	}

	for(int i = 0; i < 3; i++){
		cout << pq.top() << endl;
		pq.pop();
	}

	int x;
	cin >> x;

	return 0;
}