fun main(args: Array<String>) {
    val (a, b, c) = readLine()!!.split(" ").map { it.toLong() }
    println(when {
        a % 2 == 0L ||
        b % 2 == 0L ||
        c % 2 == 0L -> 0
        else -> Math.min(b * c, Math.min(a * b, a * c))
    })
}