#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int a[5];
int main()
{
	for (int i = 0; i < 5; i++) {
		cin >> a[i];
	}
	sort(a, a + 5, std::greater<int>());
	//reverse(a, a + 5);
	for (int i = 0; i < 5; i++) {
		if (i == 4)cout << a[i] << endl;
		else cout << a[i] << " ";
	}
    return 0;
}