#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<string>
#include<iostream>
#include<algorithm>
using namespace std;
long long a, b, c;

int main()
{
	scanf("%lld %lld %lld", &a, &b, &c);
	if(a%2 == 0 || b%2 == 0 || c%2 == 0) printf("0\n");
	else
	{
		long long minnum = min(a*b, min(b*c, c*a));
		printf("%lld\n", minnum);
	}
	return 0;
}