fun main(args : Array<String>) {
    val (a, b, c) = readLine()!!.split(" ").map { it.toLong() }

    if (a % 2L == 0L || b % 2L == 0L || c % 2L == 0L) {
        println(0)
        return
    }

    val ab = a * b * (c - c / 2L) - a * b * (c / 2L)
    val bc = b * c * (a - a / 2L) - b * c * (a / 2L)
    val ca = c * a * (b - b / 2L) - c * a * (b / 2L)

    println(Math.min(Math.min(ab, bc), ca))
}