n=int(eval(input()))

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

b=a[::2]

cnt=0

for i in range(len(b)):

  if b[i]%2==1:

    cnt+=1

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

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

aa = a[::2]



cnt = 0

for i in aa:

    if i % 2 == 1:

        cnt += 1



print(cnt)

n = int(eval(input()))
a = list(map(int, input().split()))
b = a[::2]
cnt = 0
for i in range(len(b)):
    if b[i] % 2 == 1:
        cnt += 1
print(cnt)

n = int(eval(input()))
a = list(map(int, input().split()))
aa = a[::2]
cnt = 0
for i in aa:
    if i % 2 == 1:
        cnt += 1
print(cnt)

-b = a[::2] +aa = a[::2] -for i in range(len(b)): -    if b[i] % 2 == 1: +for i in aa: +    if i % 2 == 1: