#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
	ll a,b,c,d,e,f,i,j,s=0;
	cin>>a>>b>>c;
	if((a%2)==0||(b%2)==0||(c%2)==0) cout<<0;
	else 
	{
		cout<<min(a*b,min(b*c,c*a));
	}
}