#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <algorithm>
using namespace std;
int main()
{
	long long x[4];
	long long  a,b,c;
	scanf("%lld %lld %lld", &a, &b, &c);
	x[1] = a;
	x[2] = b;
	x[3] = c;
	sort(x + 1 , x + 4);
	if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0)
	{
		printf("0\n");
	}
	else
	{
		printf("%lld\n",x[1] * x[2]);
	}
	return 0;
}