#include <stdio.h>

int main ()
{
	int a[5], swap;
	
	for (int i = 0; i < 5; i++)
		scanf ("%d", &a[i]);
		
	
	for (int i = 0; i < 5; i++)
	{
		
		for (int j = i + 1; j < 5; j++)
		{
			if (a [j] > a[i])
			{
				swap = a[i];
				a[i] = a[j];
				a[j] = swap;
			}

		}
		
	}

	for (int i = 0; i < 5; i++)
	{
		printf ("%d", a[i]);
		
		if ( i != 5)
			printf (" ");
		else
			printf ("\n");
	}

	
	return 0;
}