#include <iostream>
#include <queue>
using namespace std;

int main(){
	cin.tie(0);
   	ios::sync_with_stdio(false);

	int height;
	priority_queue<int> pq;

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

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