#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()
{
	string str = "";
	int n;
	vector <int> hight;

	while (getline (cin, str )){
		stringstream ssn(str);
		ssn >> n;
		hight.push_back(n);
	} // end while

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