#include<iostream>
#include<algorithm>

using namespace std;

int high[10];

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

	sort(high, high + 10);

	for (int i = 0; i < 3; i++)	{
		cout << -high[i] << endl;
	}
}