import java.util.Scanner

object Main {
  val sc = new Scanner(System.in)
  def main(args: Array[String]): Unit = {
    val a = sc.nextLong
    val b = sc.nextLong
    val c = sc.nextLong

    val res =
      if(a % 2 == 0 || b % 2 == 0 || c % 2 == 0 ) 0L
      else Seq(a * b, b * c , c * a).min

    println(res)
  }

}