#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
	long long A, B, C;
	cin >> A >> B >> C;
	long long ans = min({ A * B * (C % 2), B * C * (A % 2), C * A * (B % 2) });
	cout << ans << endl;
}
