N = int(eval(input()))

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



ans = 0

for i in range(N):

  if (i+1)%2 == 1 and A[i]%2 == 1:

    ans +=1

print(ans)
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 == 1:

    ans +=1

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

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 == 1:
        ans += 1
print(ans)

-    if (i + 1) % 2 == 1 and A[i] % 2 == 1: +    if i % 2 == 0 and A[i] % 2 == 1: