var a, b, c: integer;
begin
readln(a, b, c);
if (a<0)and(a mod 2=0) then writeln(a+b+c)
else writeln(a*b*c);
end.
var a, b, c: integer;
begin
readln(a, b, c);
if (a<0)and(a mod 2=0) then writeln(a+b+c)
else writeln(a*b*c);
end.