main = do
  li <- getLine
  let [a,b,c] = map read $ words li
  print $ compute a b c

-- 偶数があれば0
-- 全て奇数なら、小さい方ふたつの積

compute :: Int -> Int -> Int -> Int
compute a b c
  | even a || even b || even c = 0
  | a < b = a * min b c
  | True  = b * min c a
