import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val a = sc.nextLong()
    val b = sc.nextLong()
    val c = sc.nextLong()

    val s = arrayOf(a, b, c).min()!!
    val l = arrayOf(a, b, c).max()!!
    val m = a + b + c - s - l

    for (v in arrayOf(s, m, l)) {
        if (v % 2 == 0L) {
            println(0)
            return
        }
    }
    println(s * m)
}
