open System

let readNumbers (str:string) =
    let mutable buf = 0
    seq {
        for c in str do
            match c with
            | ' ' ->
                yield buf
                buf <- 0
            | x ->
                buf <- buf * 10 + (int x) - 0x30
        yield buf
    }

do
    Console.ReadLine()
    let odds =
        Console.ReadLine()
        |> readNumbers
        |> Seq.filter (fun x -> x % 2 = 1)
        |> Seq.length
    printf "%s" <| if odds % 2 = 0 then "YES" else "NO"

[<EntryPoint>]
let main _ =
    0