n = int(eval(input()))

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

ans = 0

for i in range(n):

    if i % 2 == 0 and a[i] % 2:

        ans += 1

print(ans)
n=eval(input())

print((sum(i&1 for i in list(map(int, input().split()))[::2])))
n = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for i in range(n):
    if i % 2 == 0 and a[i] % 2:
        ans += 1
print(ans)

n = eval(input())
print((sum(i & 1 for i in list(map(int, input().split()))[::2])))

-n = int(eval(input())) -a = list(map(int, input().split())) -ans = 0 -for i in range(n): -    if i % 2 == 0 and a[i] % 2: -        ans += 1 -print(ans) +n = eval(input()) +print((sum(i & 1 for i in list(map(int, input().split()))[::2])))