N = int(eval(input()))

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



cnt = 0



for i in range(N):

    if i%2 == 0 and A[i]%2 != 0:

        cnt += 1

    else:

        continue

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

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

cnt = 0



for i in range(0, N, 2):

    if A[i]%2 != 0:

       cnt += 1

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

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

-for i in range(N): -    if i % 2 == 0 and A[i] % 2 != 0: +for i in range(0, N, 2): +    if A[i] % 2 != 0: -    else: -        continue