program xyz;
var x, y, z: integer;
begin
read(x,y,z); writeln(x,' ', y,' ',z);
if x <=y then
begin
if x<=z then
begin
write(x, ' ');
if y<=z then write(y,' ',z)
else write(z,' ',y);
end
else write (z,' ',x,' ',y);
end
else
begin
if y<=z then
begin
write(y,' ');
if x<=z then write(x,' ',z)
else write(z,' ',x)
end
else write (z,' ', y,' ',x)
end
end.
cHJvZ3JhbSB4eXo7CnZhciB4LCB5LCB6OiBpbnRlZ2VyOwogICAgCmJlZ2luCiAgICByZWFkKHgseSx6KTsgd3JpdGVsbih4LCcgJywgeSwnICcseik7CiAgICBpZiB4IDw9eSB0aGVuCiAgICAJYmVnaW4KICAgIAlpZiB4PD16IHRoZW4KICAgIAkJYmVnaW4KICAgIAkJd3JpdGUoeCwgJyAnKTsKICAgIAkJaWYgeTw9eiB0aGVuIHdyaXRlKHksJyAnLHopCiAgICAJCWVsc2Ugd3JpdGUoeiwnICcseSk7CiAgICAJCWVuZAogICAgCWVsc2Ugd3JpdGUgKHosJyAnLHgsJyAnLHkpOwogICAgCWVuZAogICAgZWxzZQogICAgCWJlZ2luCiAgICAJaWYgeTw9eiB0aGVuCiAgICAJCWJlZ2luCiAgICAJCXdyaXRlKHksJyAnKTsKICAgIAkJaWYgeDw9eiB0aGVuIHdyaXRlKHgsJyAnLHopCiAgICAJCWVsc2Ugd3JpdGUoeiwnICcseCkKICAgIAkJZW5kCiAgICAJZWxzZSB3cml0ZSAoeiwnICcsIHksJyAnLHgpCiAgICAJZW5kCiAgICAKZW5kLg==