n = int(eval(input()))

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

e = []

o = []

e_append = e.append

o_append = o.append



for a in A:

    if a % 2 == 0:

        e_append(a)

    else:

        o_append(a)



if len(o) %2 != 0:

    print('NO')

else:

    print('YES')
n = int(eval(input()))

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

o = [a for a in A if a % 2 != 0]





if len(o) %2 != 0:

    print('NO')

else:

    print('YES')
n = int(eval(input()))
A = list(map(int, input().split()))
e = []
o = []
e_append = e.append
o_append = o.append
for a in A:
    if a % 2 == 0:
        e_append(a)
    else:
        o_append(a)
if len(o) % 2 != 0:
    print("NO")
else:
    print("YES")

n = int(eval(input()))
A = list(map(int, input().split()))
o = [a for a in A if a % 2 != 0]
if len(o) % 2 != 0:
    print("NO")
else:
    print("YES")

-e = [] -o = [] -e_append = e.append -o_append = o.append -for a in A: -    if a % 2 == 0: -        e_append(a) -    else: -        o_append(a) +o = [a for a in A if a % 2 != 0]