N = int(eval(input()))

c = 0

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

    if i % 2 == 0 and a % 2 == 1:

        c += 1



print(c)
N = int(eval(input()))

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



ans = 0

for i, A in enumerate(As):

  if i % 2 == 0 and A % 2 == 1:

    ans += 1

    

print(ans)
N = int(eval(input()))
c = 0
for i, a in enumerate(map(int, input().split())):
    if i % 2 == 0 and a % 2 == 1:
        c += 1
print(c)

N = int(eval(input()))
As = list(map(int, input().split()))
ans = 0
for i, A in enumerate(As):
    if i % 2 == 0 and A % 2 == 1:
        ans += 1
print(ans)

-c = 0 -for i, a in enumerate(map(int, input().split())): -    if i % 2 == 0 and a % 2 == 1: -        c += 1 -print(c) +As = list(map(int, input().split())) +ans = 0 +for i, A in enumerate(As): +    if i % 2 == 0 and A % 2 == 1: +        ans += 1 +print(ans)