#include <iostream>
#include <algorithm>

using namespace std;

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