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

int main(){
  int a, b, c, d, e;
  vector<int> x;

  cin >> a >> b >> c >> d >> e;

  x.push_back(a);
  x.push_back(b);
  x.push_back(c);
  x.push_back(d);
  x.push_back(e);

  sort(x.begin(), x.end(), greater<int>());

  for(int i=0; i<x.size(); i++) {
    cout << x[i] << " ";
  }
  return 0;
}