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

int main() {
  int n[5];

  for (int i = 0; i < 5; i++) {
    cin >> n[i];
  }
  sort(n, n + 5);
  
  cout << n[4] << " " << n[3] << " " << n[2] << " " << n[1] << " " << n[0] << endl;
}