import           Data.List

main :: IO ()
main = do
  [a, b, c] <- sort . map read . words <$> getLine
  print $ solve a b c

solve :: Int -> Int -> Int -> Int
solve a b c
  | any even [a, b, c]
    = 0
  | otherwise
    = a * b