#include <algorithm>
#include <sstream>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
#include <queue>
#include <vector>
using namespace std;

bool comp(int &a, int &b) {
	return a > b;
}

int main()
{
	int a, b, c, d, e;
	vector<int> A;
	cin >> a >> b >> c >> d >> e;
	A.push_back(a);
	A.push_back(b);
	A.push_back(c);
	A.push_back(d);
	A.push_back(e);
	sort(A.begin(), A.end(), comp);

	for (int i = 0; i < 5; i++) {
		if (i > 0) cout << " ";
		cout << A[i];
	}
	cout << endl;
}

