#include <cstdio>
#include <algorithm>
#include <iostream>
using namespace std;

int main()
{
	int Hill[10];

	for (int i = 0; i < 10; i++){
		cin >> Hill[i];
	}

	sort(Hill, Hill + 10);

	cout << Hill[9] << endl << Hill[8] << endl << Hill[7] << endl;

	return (0);
}