
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>
#define pi 3.14159265358979323846264338
using namespace std;

int main() {
	vector<int> yama;
	int j;
	for (int i = 0; i < 10; i++) {
		cin >> j;
		yama.emplace_back(j);
	}
	sort(yama.begin(), yama.end());
	for (int i = 0; i < 3; i++) {
		cout << yama[9 - i] << endl;
	}
	return 0;
}