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