solve :: [Int] -> String solve [n,m,c] = if yn then "YES" else "NO" where yn = not (n == 1 || m == 1) && (n `mod` 2 == 0 || m `mod` 2 == 0) main = getLine >>= putStrLn . solve . map read . words