n=int(eval(input()))

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

c=0

for a in al:

    c+=1 if a%2==1 else 0

print(('YES' if c%2==0 else 'NO'))
eval(input())

print(('YES' if sum(map(int,input().split()))%2==0 else 'NO'))
n = int(eval(input()))
al = list(map(int, input().split()))
c = 0
for a in al:
    c += 1 if a % 2 == 1 else 0
print(("YES" if c % 2 == 0 else "NO"))

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

-n = int(eval(input())) -al = list(map(int, input().split())) -c = 0 -for a in al: -    c += 1 if a % 2 == 1 else 0 -print(("YES" if c % 2 == 0 else "NO")) +eval(input()) +print(("YES" if sum(map(int, input().split())) % 2 == 0 else "NO"))