#include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a % 2 != 0 && b % 2 != 0)
{
cout << a + b;
}
else
{
cout << a * b;
}
return 0;
}
start
natural a, b
scrie a, b
daca a mod 2 != 0 SI b mod 2 != 0
atunci
scrie a + b
sfarsit_daca
altfel
scrie a * b
sfarsit_altfel
stop