import std.stdio;
import std.regex;

void main(){
	auto io = new IO();
	auto ABC = io.rect()[0];
	if( ABC[0]%2==0 || ABC[1]%2==0 || ABC[2]%2==0 ){
		writeln("0");
		return;
	}else{
		ABC.sort();
		writeln(ABC[0]*ABC[1]);
		return;
	}
}


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

immutable PRIME = 1_000_000_007;
immutable alphaB = "abcdefghijklmnopqrstuvwxyz";
immutable alphaU = "ABCDRFGHIJKLMNOPQRSTUVWXYZ";

class IO
{
	T[] line( T = real , string token = " " )( size_t m = 1 ){
		T[] arr = [];
		foreach( i ; 0..m ){
			arr ~= this.read!T();
		}
		return arr;
	}
	T[][] rect( T = real , string token = " " )( size_t m = 1 ){
		T[][] arr = new T[][](m);
		foreach( i ; 0..m ){
			arr[i] = this.read!T(token);
		}
		return arr;
	}
	private T[] read( T = size_t )( string token = " " ){
		T[] arr;
		foreach( elm ; readln().chomp().split(token) ){
			arr ~= elm.to!T();
		}
		return arr;
	}
	void swap( T )( ref T x , ref T y ){
		x = x^y;
		y = x^y;
		x = x^y;
	}
}