#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
//	cut here before submit 
//	freopen("testcase.dat", "r", stdin);
	int n;
	vector <int> res(10, 0);
	int i;

	for (i = 0; i < 10; ++i){
		cin >> n;
		res[i] = n;
	} // end for

	sort (res.begin(), res.end(), greater<int>() );
	
	for (i = 0; i < 3; ++i){
		cout << res[i] << endl;
	} // end for
		
	return 0;
}