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