#include "bits/stdc++.h"
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
const ld eps = 1e-9;

#include<unordered_map>


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