import sys

import bisect

import collections

import fractions

import heapq





def slove():

    input = sys.stdin.readline

    n = int(input().rstrip('\n'))

    a = list(map(int, input().rstrip('\n').split()))

    cnt = 0

    for i in range(n):

        if a[i] % 2 != 0:

            cnt += 1

    if cnt % 2 == 0:

        print("YES")

    else:

        print("NO")





if __name__ == '__main__':

    slove()

import sys





def solve():

    readline = sys.stdin.buffer.readline

    mod = 10 ** 9 + 7

    n = int(readline())

    a = list(map(int, readline().split()))

    cnt = 0

    for v in a:

        if v % 2 != 0:

            cnt += 1

    print(("YES" if cnt % 2 == 0 else "NO"))





if __name__ == '__main__':

    solve()

import sys
import bisect
import collections
import fractions
import heapq


def slove():
    input = sys.stdin.readline
    n = int(input().rstrip("\n"))
    a = list(map(int, input().rstrip("\n").split()))
    cnt = 0
    for i in range(n):
        if a[i] % 2 != 0:
            cnt += 1
    if cnt % 2 == 0:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    slove()

import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10**9 + 7
    n = int(readline())
    a = list(map(int, readline().split()))
    cnt = 0
    for v in a:
        if v % 2 != 0:
            cnt += 1
    print(("YES" if cnt % 2 == 0 else "NO"))


if __name__ == "__main__":
    solve()

-import bisect -import collections -import fractions -import heapq -def slove(): -    input = sys.stdin.readline -    n = int(input().rstrip("\n")) -    a = list(map(int, input().rstrip("\n").split())) +def solve(): +    readline = sys.stdin.buffer.readline +    mod = 10**9 + 7 +    n = int(readline()) +    a = list(map(int, readline().split())) -    for i in range(n): -        if a[i] % 2 != 0: +    for v in a: +        if v % 2 != 0: -    if cnt % 2 == 0: -        print("YES") -    else: -        print("NO") +    print(("YES" if cnt % 2 == 0 else "NO")) -    slove() +    solve()