#include <bits/stdc++.h>
using namespace std;
int main()
{
	vector<int> arr;
	for(int i=1;i<=10;i++)
	{
		int a;
		cin>>a;
		arr.push_back(a);
	}
	sort(arr.begin(),arr.end());
	cout<<arr[arr.size()-1]<<endl;
	cout<<arr[arr.size()-2]<<endl;
	cout<<arr[arr.size()-3]<<endl;
	return 0;
}
