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(){
	int[] ds = readln.chomp.split.map!(to!int).array;
	
	int a = ds[0], b = ds[1], c = ds[2];
	
	int ans;
	if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0) ans = 0;
	else ans = min(a * b, a * c, b * c);
	
	ans.writeln;
	}