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

int main() {
  vector<int> v(5);
  for(int i = 0; i < 5; ++i) {
    cin >> v[i];
  }
  sort(v.begin(), v.end(), greater<int>());
  for(int i = 0; i < 5; ++i) {
    if(i) cout << " ";
    cout << v[i];
  }
  cout << endl;
  return 0;
}