n = int(eval(input()))

a = [int(i) for i in input().split()]

ans = 0

for x,i in enumerate(a,1):

    if x%2 == 1 and i%2 == 1: ans += 1

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

a = [int(i) for i in 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 = [int(i) for i in input().split()]
ans = 0
for x, i in enumerate(a, 1):
    if x % 2 == 1 and i % 2 == 1:
        ans += 1
print(ans)

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

-for x, i in enumerate(a, 1): -    if x % 2 == 1 and i % 2 == 1: +for i in range(n): +    if i % 2 == 0 and a[i] % 2 == 1: