n=int(eval(input()))

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

ans=0

for i in a[0::2]:

  ans+=(i&1)

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

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

b=[i&1 for i in a[::2]]

print((sum(b)))
n = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for i in a[0::2]:
    ans += i & 1
print(ans)

n = int(eval(input()))
a = list(map(int, input().split()))
b = [i & 1 for i in a[::2]]
print((sum(b)))

-ans = 0 -for i in a[0::2]: -    ans += i & 1 -print(ans) +b = [i & 1 for i in a[::2]] +print((sum(b)))