object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val abc = Array.fill(3)(sc.nextLong()).sorted
  if (abc.last % 2 == 0) {
    println(0)
  } else {
    println(abc(0) * abc(1))
  }
}
