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

typedef long long ll;

int main() {
	ll a[5];
	for (int i = 0; i < 5; i++) {
		cin >> a[i];
	}
	sort(a, a + 5);
	for (int i = 0; i < 5; i++) {
		if (i) cout << " ";
		cout << a[4 - i];
	}
	cout << endl;
}
