let a, b, c = Scanf.scanf " %d %d %d" @@ fun a b c -> a, b, c
let p = if a > b then b * if a > c then c else a else a * if b > c then c else b
let _ = Printf.printf "%d\n" @@ if a * b mod 2 = 0 || c mod 2 = 0 then 0 else p