#include<iostream>
#include<vector>
#include<algorithm>
#include<map>
#include<string>
#include<cmath>
#include<numeric>
using namespace std;


int main(void) {

  vector<int> a(5);
  for(int i=0; i<5; i++) cin >> a[i];

  sort(a.begin(), a.end());
  for(int i=4; i>=1; i--) cout << a[i] << " ";
  cout << a[0] << endl;
  return 0;
}