{-# LANGUAGE BangPatterns #-}

import Control.Applicative
import Control.Monad
import Data.List
import qualified Data.ByteString.Char8 as B

readi b | Just (n, _) <- B.readInt b = n

solve :: Int -> [Int] -> Bool
solve n as = even . length $ filter odd as

main :: IO ()
main = do
    n <- readLn :: IO Int
    as <- fmap readi . B.words <$> B.getLine
    if solve n as
        then putStrLn "YES"
        else putStrLn "NO"