import Control.Applicative import Text.Printf f :: [Int] -> String f (x:y:_) | x == 1 = if y <= 2 then "YES" else "NO" | y == 1 = if x <= 2 then "YES" else "NO" | even $ x*y = "YES" | otherwise = "NO" main = do xs <- take 2 <$> fmap (read :: String -> Int) . words <$> getLine putStrLn $ f xs