{pascal}
var a,b,c:integer;
begin
readln(a,b,c);
if (a mod 2 = 0) and (a<0) then writeln(a+b+c) else writeln(a*b*c);
end.
//c++
#include <iostream>
using namespace std;
int main() { int a,b,c; cin>>a>>b>>c; if (a%2==0 && a<0) { cout<<(a+b+c); } else { cout<<(a*b*c); } return 0;}
{pascal}
var a,b,c:integer;
begin
readln(a,b,c);
if (a mod 2 = 0) and (a<0) then writeln(a+b+c) else writeln(a*b*c);
end.
//c++
#include <iostream>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if (a%2==0 && a<0) {
cout<<(a+b+c);
}
else {
cout<<(a*b*c);
}
return 0;
}