#include<iostream>
#include<math.h>
using namespace std;
long long a,b,c,ans;
int main()
{
	cin>>a>>b>>c;
	if(a%2==0||b%2==0||c%2==0) 
		cout<<0<<endl;
	else 
	{
		ans=min(a*c,min(a*b,b*c));
		cout<<ans<<endl;
	} 
 } 