#include<iostream>
using namespace std;

int main()
{
	int number[5];
	cin >> number[0] >> number[1] >> number[2] >> number[3] >> number[4];

	for(int i=0;i<5;i++)
	{
		for(int j=4;j>i;j--)
		{
			if(number[j] > number[j-1])
			{
				int temp = number[j];
				number[j] = number[j-1];
				number[j-1] = temp;
			}
		}
	}

	cout << number[0] <<" "<< number[1] <<" "<< number[2] <<" "<< number[3] <<" "<< number[4] << endl;

	return 0;
}