#include<stdio.h>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
	vector<int>v;
	int i,j,k;
	for(i=0;i<5;i++){
		scanf("%d",&j);
		v.push_back(j);}
	sort(v.begin(),v.end());
	for(i=4;i>=0;i--){
		printf("%d",v[i]);
		if(i!=0)printf(" ");}
	printf("\n");
	return 0;}
