n = int(eval(input()))

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

b = []

for num in a:

  b.append(num%2)

  

import collections

c = collections.Counter(b)



num0=c[0]

num1=c[1]

num0 += num1//2

num0 %= 2

num1 = num1%2



if num0+num1==2:

  print("NO")

else:

  print("YES")

  
n = int(eval(input()))

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



if sum(a)%2==0:

  print("YES")

else:

  print("NO")
n = int(eval(input()))
a = list(map(int, input().split()))
b = []
for num in a:
    b.append(num % 2)
import collections

c = collections.Counter(b)
num0 = c[0]
num1 = c[1]
num0 += num1 // 2
num0 %= 2
num1 = num1 % 2
if num0 + num1 == 2:
    print("NO")
else:
    print("YES")

n = int(eval(input()))
a = list(map(int, input().split()))
if sum(a) % 2 == 0:
    print("YES")
else:
    print("NO")

-b = [] -for num in a: -    b.append(num % 2) -import collections - -c = collections.Counter(b) -num0 = c[0] -num1 = c[1] -num0 += num1 // 2 -num0 %= 2 -num1 = num1 % 2 -if num0 + num1 == 2: +if sum(a) % 2 == 0: +    print("YES") +else: -else: -    print("YES")