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



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