solve :: [Int] -> String solve [n,m,c] | n == 2 || m == 2 = "YES" | n == 1 || m == 1 = "NO" | n `mod` 2 == 0 || m `mod` 2 == 0 = "YES" | otherwise = "NO" main = getLine >>= putStrLn . solve . map read . words