#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include <iomanip>
#include <queue>
using namespace std;

 
int main(){

	priority_queue<int> q;
	int tmp;

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

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

	return 0;
}