#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
 #include<functional>

#define INPUT_FROM_FILE (0) 
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
	std::vector<int> v(5);

#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif

#if INPUT_FROM_FILE
	ifs >> v[0] >> v[1] >> v[2] >> v[3] >> v[4];
#else
	std::cin >> v[0] >> v[1] >> v[2] >> v[3] >> v[4];
#endif

	std::sort(v.begin(), v.end(), std::greater<int>());
	
	std::cout << v[0];
	for(int i = 1; i < 5; i++){
		std::cout << " " << v[i];
	}
	std::cout << std::endl;
	return 0;
}
