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

using namespace std;

int main() {
  int ns[5];
  for (int i = 0; i < 5; i++)
    cin >> ns[i];
  sort(ns, ns+5, greater<int>());
  for (int i = 0; i < 4; i++)
    cout << ns[i] << ' ';
  cout << ns[4] << endl;
  return 0;
}