import Data.List
import qualified Data.ByteString.Char8 as B
main=do
    _<-getLine
    an<-length.filter(odd).unfoldr (B.readInt.B.dropWhile(==' '))<$>B.getLine
    putStrLn $ if even an then "YES" else "NO"