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

int main() {
	vector<int> numbers(5);
	cin >> numbers[0] >> numbers[1] >> numbers[2] >> numbers[3] >> numbers[4];
	sort(numbers.rbegin(), numbers.rend());
	for (int i = 0; i != 5; ++i) {
		cout << numbers[i] << " ";
	}
	cout << endl;
	return 0;
}