#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

using namespace std;

int main(void){
  int x;
  vector<int> v;

  for(int i=0; i<5; i++){
    cin >> x;
    v.push_back(x);
  }

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

  for(int i=0; i<5; i++){
    cout << v[i] << " ";
  }
  cout << endl;

  return 0;
}