#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	if(a>b) swap(a,b);
	if(b>c) swap(b,c);
	if(a%2==0||b%2==0||c%2==0) puts("0");
	else{
		printf("%lld\n",1LL*a*b);
	}
	return 0;
}