#include <iostream>
#include <math.h>
#define PI 3.141592
using namespace std;

int main() {
int a[5];
cin>>a[0]>>a[1]>>a[2]>>a[3]>>a[4];
for(int k=0;k<=3;k++){
	for(int l=k+1;l<=4;l++){
		if(a[k]<a[l]){
			int c;
		c=a[k];
		a[k]=a[l];
		a[l]=c;
	}
}
}
cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<" "<<a[3]<<" "<<a[4]<<endl;
	return 0;
}