fun main(args: Array<String>) {
    val (a, b, c) = readLine()!!.split(" ").map(String::toLong)
    fun isEven(v: Long): Boolean {
        return v % 2L == 0L
    }
    if (isEven(a) || isEven(b) || isEven(c)) {
        println(0)
    } else {
        val list = listOf(a, b, c).sorted()
        val d = list[0] * list[1]
        println(d * ((list[2] / 2) + 1) - d * (list[2] / 2))
    }
}



