#include<iostream>
#include<algorithm>
#include<functional>

int main(){

	int num[5];

	for (int i = 0; i < 5; i++)std::cin >> num[i];

	std::sort(num, num + 5, std::greater<int>());

	for (int i = 0; i < 5; i++){
		if (i == 0)std::cout << num[i];
		else std::cout << " " << num[i];
	}
	std::cout << std::endl;

	return 0;
}