#include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
using namespace std;

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