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

int main() {

	int mountain[10];
	for (int i = 0; i < 10; i++)
		cin >> mountain[i];
	sort(mountain,mountain+10);
	for(int i=9;i>=7;i--)
	cout << mountain[i] << endl;

	return 0;

}