#include
using namespace std;
int main()
{
int a,b,c,t;
cin >> a>>b>>c ;
if ( a > b )
{ //交换两数
t=a;
a=b;
b=t;
}
//到此,保证a<=b
if ( c < a ) //小于小的,为最小
cout << c << " " << a << " " << b <else if ( c>b ) //大于大的,为最大
cout << a << " " << b << " " << c <else
cout << a << " " << c << " " << b <return 0;
}