import Control.Applicative
import Data.List (sort)

main = do
  [a,b,c] <- map read.words <$> getLine :: IO [Int]
  if any even [a,b,c]
    then print 0
    else
      let [l,m] = take 2 $ sort [a,b,c]
      in print (l*m)
