#include <algorithm>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
#include <queue>
#include <vector>
using namespace std;

bool compare(int &a, int &b) {
	return a > b;
}

int main()
{
	int x;
	vector<int> A;
	while (cin >> x && x != EOF) {
		A.push_back(x);
	}

	sort(A.begin(), A.end(), compare);

	cout << A[0] << endl;
	cout << A[1] << endl;
	cout << A[2] << endl;
}

