var x,y : integer;
begin
readln( x, y );
if ((x+y) mod 2 ) = 0 then writeln(x div y)
else writeln(x * y);
end.
var x,y : integer;
begin
readln( x, y );
if ((x+y) mod 2 ) = 0 then writeln(x div y)
else writeln(x * y);
end.