#include <iostream>
using namespace std;

template <typename TYPE>
void swap(TYPE* a, TYPE* b)
{
	TYPE temp;
	temp = *a;
	*a = *b;
	*b = temp;
}

int main(void)
{
	int a[5];

	for (int i = 0; i < 5; i++)
	{
		cin >> a[i];
	}

	for (int i = 0; i < 5 - 1; i++)
	{
		for (int j = i; j < 5; j++)
		{
			if (a[i] < a[j]) swap(&a[i], &a[j]);
		}
	}
	for (int i = 0; i < 5; i++)
	{
		if (i == 0)
			cout << a[i];
		else cout << " " << a[i];
	}
	cout << endl;
	return 0;
}
