n = int(eval(input()))

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

ans = 0

for i in range(n):

    if i %2 == 1:

        continue

    if A[i] % 2 == 1:

        ans += 1

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

ans = 0

for i,j in enumerate(map(int,input().split())):

    ans += (~i&1 and j&1)

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

n = eval(input())
ans = 0
for i, j in enumerate(map(int, input().split())):
    ans += ~i & 1 and j & 1
print(ans)

-n = int(eval(input())) -A = list(map(int, input().split())) +n = eval(input()) -for i in range(n): -    if i % 2 == 1: -        continue -    if A[i] % 2 == 1: -        ans += 1 +for i, j in enumerate(map(int, input().split())): +    ans += ~i & 1 and j & 1