import Data.List.Split
import Data.Maybe
import qualified Data.ByteString.Char8 as B
main = mapM_ (putStrLn . solve) . chunksOf 2 . map (map readInt . B.words) . B.lines =<< B.getContents
readInt = fst . fromJust . B.readInt
solve [_,as] = if a then "YES" else "NO" where
  a = even . length . filter odd $ as