#include<bits/stdc++.h>
using namespace std;
int main()
{
  inta,b,c;
  cin>>a>>b>>c;
  if(a>b)
    cout<<a;
  else
    cout<<b;
   if(a>c)
     cout<<a;
  else
    cout<<c;
  if(b<c)
    cout<<b;
  else
    cout<<c;
  return 0;
}