#include <stdio.h>
#include <string.h>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
using namespace std; 
int main()
{
	long long vis1 = 0, vis2 = 0 , vis3 = 0;
	long long a, b, c;
	scanf("%lld %lld %lld", &a, &b, &c);
	long long ans = 1;
	if(a % 2 == 0)
	{
		vis1 = 1;
	}
	if(b % 2 == 0)
	{
		vis2 = 1;
	}
	if(c % 2 == 0)
	{
		vis3 = 1;
	}
	if(vis1 == 1 || vis2 == 1 || vis3 == 1)
	{
		printf("0\n");
	}
	if(vis1 == 0 && vis2 == 0 && vis3 == 0)
	{
		if( a <= b && b <= c)
		{
			ans = ans * a * b;
			printf("%lld\n", ans);
		}
		else
		{
			if(a <= c && c <= b)
			{
			ans = ans * a * c;
			printf("%lld\n",ans);
			}
			else
			{
				ans = ans * c * b;
				printf("%lld\n",ans);
			}
		}
	}
	return 0;
}