import Control.Applicative
import Control.Monad
import Data.List

solve a b c
    | any even [a, b, c] = 0
    | otherwise =
        minimum [a * b, b * c, c * a]

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