program Hello;
var a, b, c: integer;
begin
readln(a); readln(b); readln(c);
if a+b = c then writeln(a*b*c)
else writeln(a+b+c);
end.
program Hello;
var a, b, c: integer;
begin
readln(a); readln(b); readln(c);
if a+b = c then writeln(a*b*c)
else writeln(a+b+c);
end.