#include <iostream>
#include <algorithm>

using namespace std;

int main(void) {
	int hei[10];
	
	for (int i = 0; i < 10; i++) {
		cin >> hei[i];
	}
	sort(hei, hei + 10);

	for (int i = 9; i > 6; i--) {
		cout << hei[i] << endl;
	}
}