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

int main(void){
  vector<int> nums;
  int buf;

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

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

  cout << nums[0];
  for(int i = 0; i < 4; i++)
    cout << ' ' << nums[i];
  cout << endl;
  return 0;
}