#include<bits/stdc++.h>
using namespace std;
long long a,b,c;
int main() {
    cin>>a>>b>>c;
    if(a%2==0 || b%2==0 || c%2==0)
        return cout<<0<<endl,0;
    cout<<min(min(a*b,a*c),b*c)<<endl;
    return 0;
}