#include <iostream>
using namespace std;
int main()
{
int x, y, z, a;
cin >> x;
cin >> y;
cin >> z;
if (y < x)
{
a = y;
y = x;
x = a;
}
if (z < x)
{
a = z;
z = x;
x = a;
}
if (y > z)
{
a = y;
y = z;
z = a;
}
cout << x<<" "<< y<<" "<<z;
return 0;
}