var
x, y: real;
begin
readln(x, y);
if ((x < 0) and (y < 0)) then
begin
x := abs(x);
y := abs(y);
end
else
if (((x < 0) and (y >= 0)) or ((x >= 0) and (y < 0))) then
begin
x += 0.5;
y += 0.5;
end
else
if (((0.5 <= x) and (x <= 2)) or ((0.5 <= y) and (y <= 2))) then<br> begin
x /= 10;
y /= 10;
end;
writeln(x, ' ', y);
end.