#include<bits/stdc++.h>
using namespace std;
long long i,j,k,n,m,x,y,z;
int main()
{
	cin>>x>>y>>z;
	if(x%2==0||y%2==0||z%2==0)
	{
		printf("0\n");
		return 0;
	}
	m=min(x*y,min(y*z,x*z));
	cout<<m<<endl;
}