#include <iostream>
#include <algorithm>
#include <vector>
#include <stdio.h>
using namespace std;
int main(int argc, char *argv[]) {
	vector<int> v;
	int in;
	while(scanf("%d", &in) == 1) {
		v.push_back(in);
		//cout << in;
	}
	sort(v.begin(), v.end(), greater<int>());
	for(int i = 0; i < 3; ++i)
		printf("%d\n", v[i]);
}