import Data.Int (Int64)

solve :: Integral a => a -> a -> a -> a
solve a b c = minimum [f a * b * c, f b * a * c, f c * a * b]
    where f x = mod x 2

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