#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void) {
	int h[20];
	for (int i = 0; i < 10; i++) {
		cin >> h[i];
	}
	sort(h, h + 10);
	for (int i = 9; i > 6; i--) {
		cout << h[i] << endl;
	}
	return 0;
}