#include <bits/stdc++.h>
using namespace std;

int main() {
    long long a, b, c, ans = 0;
    cin >> a >> b >> c;
    
    if (a%2 and b%2 and c%2)
        ans = min({a*b, b*c, c*a});
    
    cout << ans << endl;
}
