var x,y: integer;
begin
readln(x,y);
if (x>y) then
x:= x - y;
y:= x + y;
end
else
y:= y - x;
end;
writeln(x);
writeln(y);
end.
var x,y: integer;
begin
readln(x,y);
if (x>y) then
begin
x:= x - y;
y:= x + y;
end
else
begin
y:= y - x;
x:= x - y;
end;
writeln(x);
writeln(y);
end.