var a, b, c: integer;
begin
readln(a, b);
if a > b then
c := b;
b := a;
a := c;
end;
writeln(a, ' ', b);
end.
var a, b, c: integer;
begin
readln(a, b);
if a > b then
begin
c := b;
b := a;
a := c;
end;
writeln(a, ' ', b);
end.