#include <stdio.h>
#include <string.h>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
using namespace std; 
int main()
{
	long long  x[10];
	int vis1 = 0, vis2 = 0 , vis3 = 0;
	int a, b, c;
	scanf("%d %d %d", &a, &b, &c);
	x[1] = a;
	x[2] = b;
	x[3] = c;
	sort(x + 1, x + 3);
	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)
	{
		ans = ans * x[1] * x[2];
		printf("%lld\n", ans);
	}
	return 0;
}