Scanf.scanf "%d %d %d" (fun a b c ->
    let ( *@) = min in
    let check a b c =
        let q = a / 2 in
        b * c * (a - 2 * q)
    in
    Printf.printf "%d\n" @@ check a b c *@ check b c a *@ check c a b 
)