#include<iostream>
using namespace std;
int main()
{
          int a[100000],c,i,j;
          for(i=0;i<5;i++)
          {
                    cin>>a[i];
          }
          for(i=0;i<5-1;i++)
          {
                    for(j=0;j<5-i-1;j++)
                    {
                              if(a[j]>a[j+1])
                              {
                                        c=a[j];
                                        a[j]=a[j+1];
                                        a[j+1]=c;
                              }
                    }
          }

                    cout<<a[4]<<" ";
                    cout<<a[3]<<" ";
                    cout<<a[2]<<" ";
                    cout<<a[1]<<" ";
                    cout<<a[0]<<"\n";
return 0;
}

