#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <queue>
#include <numeric>
#include <climits>
#include <iterator>
#include <functional>
using namespace std;

int main() {
	vector<int> v;
	for (int i = 0; i < 5; ++i) {
		int a; cin >> a;
		v.push_back(a);
	}
	sort(v.begin(), v.end(), greater<int>());
	
	for (int i = 0; i < 5; ++i) {
		if (i == 4) {
			cout << v[i];
			cout << endl;
			break;
		}
		cout << v[i] << " ";
	}
	return 0;
}
