import Control.Applicative ((<$>), (<*>))
import Control.Monad
import Data.List

main :: IO ()
main = do
  solve <$> getl read <*> getl (map read . words) >>= putStrLn

solve :: Int -> [Int] -> String
solve n as
  | odd . length . filter odd $ as = "NO"
  | otherwise = "YES"

getl :: (String -> a) -> IO a
getl f = f <$> getLine
