extension String: CollectionType{}
let a : Int = Int(readLine()!)!
let x: [Int] = readLine()!.split(" ").map { Int($0)! }
let sum = x.reduce(0,combine: +)
switch sum%2 {
case 1:
    print("NO")
case 0:
    print("YES")
default:
    break
}