#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <functional>

using namespace std;

int main(void) {
	int x=0;
	vector<int> data;
	for (int i = 0; i < 10; i++) {
		scanf("%d", &x);
		data.push_back(x);
	}
	sort(data.begin(), data.end(), greater<int>());
	for (int i = 0; i < 3; i++) {
		printf("%d\n", data[i]);
	}

	return 0;
}