#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
setlocale(LC_ALL, "russian");
int val1;
int val2;
int val3;
int box1;
int box2;
int box3;
int change;
change = 0;
cin >> val1 >> val2 >> val3;
if ((val1 <= val2))
{
box1 = val1;
box2 = val2;
}
else
{
box1 = val2;
box2 = val1;
}
if (box2 >= val3)
{
box3 = box2;
box2 = val3;
}
else
{
box3 = val3;
}
if (box1 >= box2)
{
change = box1;
box1 = box2;
box2 = change;
}
cout << box1 << ", " << box2 << ", " << box3;
_getch();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y29uaW8uaD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKCXNldGxvY2FsZShMQ19BTEwsICJydXNzaWFuIik7CgoJaW50IHZhbDE7CglpbnQgdmFsMjsKCWludCB2YWwzOwoJaW50IGJveDE7CglpbnQgYm94MjsKCWludCBib3gzOwoJaW50IGNoYW5nZTsKCWNoYW5nZSA9IDA7CgoJY2luID4+IHZhbDEgPj4gdmFsMiA+PiB2YWwzOwoKCWlmICgodmFsMSA8PSB2YWwyKSkKCXsKCQlib3gxID0gdmFsMTsKCQlib3gyID0gdmFsMjsKCX0KCWVsc2UKCXsKCQlib3gxID0gdmFsMjsKCQlib3gyID0gdmFsMTsKCX0KCglpZiAoYm94MiA+PSB2YWwzKQoJewoJCWJveDMgPSBib3gyOwoJCWJveDIgPSB2YWwzOwoJfQoJZWxzZQoJewoJCWJveDMgPSB2YWwzOwoJfQoKCWlmIChib3gxID49IGJveDIpCgl7CgkJY2hhbmdlID0gYm94MTsKCQlib3gxID0gYm94MjsKCQlib3gyID0gY2hhbmdlOwoJfQoKCWNvdXQgPDwgYm94MSA8PCAiLCAiIDw8IGJveDIgPDwgIiwgIiA8PCBib3gzOwoKCV9nZXRjaCgpOwoJcmV0dXJuIDA7Cn0=