
import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val in = (1 to 3).map(_ => sc.nextLong).sorted

  if (in.exists(_ % 2 == 0)) {
    println(0)
  } else {
    println(in(0) * in(1))
  }
}
