#include <stdio.h>
int main()
{
	long long  a,b,c;
	scanf("%lld %lld %lld", &a, &b, &c);
	if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0)
	{
		printf("0\n");
	}
	else
	{
		if(a <= c && b <= c)
		{
			printf("%lld\n",a * b);
		}
		else
		{
			if(a <= b && c <= b)
			{
				printf("%lld\n",a * c);
			}
			else
			{
				printf("%lld\n",b * c);
			}
		}
	}
	return 0;
}