N = int(eval(input()))

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

cnt = 0

for i in range(0, N):

    if (i+1) % 2 != 0 and a[i] % 2 != 0:

        cnt += 1

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(0, N):
    if (i + 1) % 2 != 0 and a[i] % 2 != 0:
        cnt += 1
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(0, N): -    if (i + 1) % 2 != 0 and a[i] % 2 != 0: +for i in range(0, N, 2): +    if a[i] % 2 != 0: