#include <iostream>
using namespace std;
unsigned long long MinAux(unsigned long long A, unsigned long long B){
if(A>=B) return B;
return A;
}
unsigned long long Min(unsigned long long A, unsigned long long B, unsigned long long C){
return MinAux(A,MinAux(B,C));
}
int main()
{
unsigned long long result;
int A, B, C;
cin >> A >> B >> C;
if((A%2==0)||(B%2==0)||(C%2==0)) result = 0;
else {
result = Min(1LL*B*C, 1LL*A*B, 1LL*A*C);
}
cout << result << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnVuc2lnbmVkIGxvbmcgbG9uZyBNaW5BdXgodW5zaWduZWQgbG9uZyBsb25nIEEsIHVuc2lnbmVkIGxvbmcgbG9uZyBCKXsKICAgIGlmKEE+PUIpIHJldHVybiBCOwogICAgcmV0dXJuIEE7Cn0KCnVuc2lnbmVkIGxvbmcgbG9uZyBNaW4odW5zaWduZWQgbG9uZyBsb25nIEEsIHVuc2lnbmVkIGxvbmcgbG9uZyBCLCB1bnNpZ25lZCBsb25nIGxvbmcgQyl7CiAgICByZXR1cm4gTWluQXV4KEEsTWluQXV4KEIsQykpOwp9CgppbnQgbWFpbigpCnsKICAgIHVuc2lnbmVkIGxvbmcgbG9uZyByZXN1bHQ7CiAgICBpbnQgQSwgQiwgQzsKICAgIGNpbiA+PiBBID4+IEIgPj4gQzsKCiAgICBpZigoQSUyPT0wKXx8KEIlMj09MCl8fChDJTI9PTApKSByZXN1bHQgPSAwOwogICAgZWxzZSB7CiAgICAgICAgcmVzdWx0ID0gTWluKDFMTCpCKkMsIDFMTCpBKkIsIDFMTCpBKkMpOwogICAgfQogICAgY291dCA8PCByZXN1bHQgPDwgZW5kbDsKCiAgICByZXR1cm4gMDsKfQo=