import std.stdio;
import std.conv, std.array, std.algorithm, std.string;
import std.math, std.random, std.range, std.datetime;
import std.bigint;

void main(){
	long[] ds = readln.chomp.split.map!(to!long).array;
	
	long a = ds[0], b = ds[1], c = ds[2];
	
	long ans;
	if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0) ans = 0;
	else ans = min(a * b, a * c, b * c);
	
	ans.writeln;
	}