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

int main() {
  int A[5];
  cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4];
  sort(A, A + 5, greater<int>());
  for (int i = 0; i < 5; ++i)
    if (i == 4)
      cout << A[i] << endl;
    else
      cout << A[i] << ' ';
}
