#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <queue>
using namespace std;
typedef long long LL;
const int Maxn = 1e5 + 5;
const int inf = 1 << 30;
const LL Inf = 1LL << 60;
int main ()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	int s;
	s = a*b*c;
	if (s%2 == 0) printf("0");
	if (s%2 == 1)
		{
			int d;
			d = min(a*b,b*c);
			d = min(d,a*c);
			printf("%d",d);
			}
	return 0;
	}