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

//0018
int main(){
	int x;
	vector<int> vec;
	vector<int>::iterator ite;
	for(int i=0; i<5; ++i){
		cin >> x;
		vec.push_back(x);
	}

	sort(vec.begin(), vec.end(), greater<int>());
	for(ite=vec.begin(); ite!=vec.end(); ite++){
		if(ite!=vec.begin()){
			cout << " ";
		}
		cout << *ite;
	}
	cout << endl;

	return 0;
}