program xyz;
var x, y, z: integer;
begin
read(x,y,z); write(x,' ', y,' ',z);
writeln;
if (x >= y) and (x >= z) then
if y > z then
write(x,' ',y,' ',z)
else
write (x,' ',z,' ',y)
else if (y >= x) and (y >= z) then
if x > z then
write(y,' ',x,' ',z)
else
write(y,' ',z,' ',x)
else if (z >= x) and (z >= y) then
if x > y then
write(z,' ',x,' ',y)
else
write(z,' ',y,' ',x)
end.
cHJvZ3JhbSB4eXo7CnZhciB4LCB5LCB6OiBpbnRlZ2VyOwogICAgCmJlZ2luCiAgICByZWFkKHgseSx6KTsgd3JpdGUoeCwnICcsIHksJyAnLHopOwogICAgd3JpdGVsbjsKICAgIAogICAgaWYgKHggPj0geSkgYW5kICh4ID49IHopIHRoZW4KICAgIAlpZiB5ID4geiB0aGVuIAogICAgCQl3cml0ZSh4LCcgJyx5LCcgJyx6KQogICAgCWVsc2UKICAgIAkJd3JpdGUgKHgsJyAnLHosJyAnLHkpCiAgICBlbHNlIGlmICh5ID49IHgpIGFuZCAoeSA+PSB6KSB0aGVuCiAgICAJaWYgeCA+IHogdGhlbgogICAgCQl3cml0ZSh5LCcgJyx4LCcgJyx6KQogICAgCWVsc2UgCiAgICAJCXdyaXRlKHksJyAnLHosJyAnLHgpCiAgICBlbHNlIGlmICh6ID49IHgpIGFuZCAoeiA+PSB5KSB0aGVuCiAgICAJaWYgeCA+IHkgdGhlbgogICAgCQl3cml0ZSh6LCcgJyx4LCcgJyx5KQogICAgCWVsc2UKICAgIAkJd3JpdGUoeiwnICcseSwnICcseCkKICAgIAkJCmVuZC4=