#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;
int main() {
	int num,a=0,b=0,draw;
	int *line = new int[5];
	for (int w = 0; w < 5; w++) {
		cin>>line[w];
	}
	for (int w = 0; w < 5; w++) {
		for (int q = 0;q < 4; q++) {
			if (line[q] < line[q + 1])swap(line[q], line[q + 1]);
		}
	}
	for (int w = 0; w < 5; w++) {
		cout << line[w];
		if (w < 4)cout << " ";
		else cout << endl;
	}
	return 0;
}
