#include<iostream>
using namespace std;
int main(){
	long long int a,b,c,m;cin>>a>>b>>c;
	if(a%2==0||b%2==0||c%2==0)cout<<0<<endl;
	else
	{
		m=a*b;
		m>b*c?m=b*c:0;
		m>c*a?m=c*a:0;
		cout<<m<<endl;
	}
}