-- Try AtCoder
-- author: Leonardone @ NEETSDKASU

import qualified Data.Map as Map

main = putStrLn . solve . lines =<< getContents

solve (hw:xs) = if ans then "Yes" else "No" where
    f m c = Map.insertWith (+) c 1 m
    (fth, chs) = unzip
               $ map (\x -> let y = mod x 4 in (if y == 0 then x else 0, y))
               $ Map.elems
               $ foldl (foldl f) Map.empty xs
    [h, w] = map read $ words hw
    ans | even h && even w = all (== 0) chs
        | even h || even w = all even chs && sum fth >= (div h 2) * (div w 2)
        | otherwise = (== 1) $ length $ filter odd chs 
