#include <iostream>
#include <stdio.h>
#include <math.h>
#include <string>
#include <algorithm>
#include <cmath>
#include <string.h>
#include <cstring>
#include <sstream>
#include <stdlib.h>

using namespace std;

int main (void)
{
	int a[4];
	cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];

	sort(a,a + 5);
	for (int i = 4; i >= 0; i--)
	{
		cout << a[i];
		if (i != 0)
		{
			cout << " ";
		}
		else
		{
			cout << endl;
		}
	}
}


