#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main(void) {
		vector<int> height;
		for(int n; cin >> n; height.push_back(n)) ;
		sort(height.begin(), height.end(), greater<int>() );
		for(int i=0; i < 3; i ++){
				cout << height[i] << endl;
		}
		return 0;
}