#include <cstdio>
#include <algorithm>
#include <vector>
#include <iostream>
#include <cctype>

using namespace std;

int comp(int i, int j)
{
	return i > j;
}

int main(void)
{
	vector <long long int> num;
	long long int x = 0;
	
	int i = 0;
	while (i < 5)
	{
		scanf("%lld", &x);
		num.push_back(x);
		i++;
	}

	sort(num.begin(), num.begin() + 5, comp);

	for (int i = 0; i < 5; i++)
		printf("%lld ", num[i]);

	printf("\n");

	return 0;
}