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