#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
using namespace std;

int main() {
	vector<int>a(5);
	for (int b = 0; b < 5; b++)cin >> a[b];
	sort(a.begin(), a.end());
	cout << a[4] << " " << a[3] << " " << a[2] << " " << a[1] << " " << a[0] << endl;
}