#include<cstdio>
#include<cmath>
#include<string>
#include<iostream>
#include<algorithm>

using namespace std;
int main(){
	long long a[3];
	int flag = -1;
	scanf("%lld %lld %lld",&a[0],&a[1],&a[2]);
	sort(a,a+3);
	for(int i = 0 ; i < 3 ; i++){
		if(a[i]%2 == 0)
			flag = 1;
	}
	if(flag == -1)
		printf("%lld\n",a[0]*a[1]);
	if(flag == 1)
		printf("0\n");
}