#include <iostream>
#include <algorithm>
using namespace std;

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