n = int(eval(input()))

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

even = 0

not_even = 0

for v in a:

  if v%2==0: even += 1

  else: not_even += 1

  if not_even == 2:

    even += 1

    not_even = 0

print(("YES" if not_even == 0 else "NO"))
n = int(eval(input()))

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

cnt = 0

for a in A:

  if a%2 != 0: cnt += 1

print(("YES" if cnt%2==0 else "NO"))
n = int(eval(input()))
a = list(map(int, input().split()))
even = 0
not_even = 0
for v in a:
    if v % 2 == 0:
        even += 1
    else:
        not_even += 1
    if not_even == 2:
        even += 1
        not_even = 0
print(("YES" if not_even == 0 else "NO"))

n = int(eval(input()))
A = list(map(int, input().split()))
cnt = 0
for a in A:
    if a % 2 != 0:
        cnt += 1
print(("YES" if cnt % 2 == 0 else "NO"))

-a = list(map(int, input().split())) -even = 0 -not_even = 0 -for v in a: -    if v % 2 == 0: -        even += 1 -    else: -        not_even += 1 -    if not_even == 2: -        even += 1 -        not_even = 0 -print(("YES" if not_even == 0 else "NO")) +A = list(map(int, input().split())) +cnt = 0 +for a in A: +    if a % 2 != 0: +        cnt += 1 +print(("YES" if cnt % 2 == 0 else "NO"))