object Main extends App {
	var Array(a, b, c) = scala.io.StdIn.readLine.split(" ").map(_.toLong)
	
	if(a%2 == 0 || b%2 == 0 || c%2 == 0){
		println(0)
	}else{
		println(math.min(math.min(b*c, a*b), a*c))
	}

}
