N = int(eval(input()))

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

cnt = 0

li = []

for count, i in enumerate(list):

    if count %2 ==0:

        li.append(i)



for j in range(len(li)):

    if li[j] %2 ==1:

        cnt +=1

print(cnt)

n = int(eval(input()))

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



cnt = 0

for i in range(1,len(a)+1):

    if i %2 == 1 and a[i-1] %2 ==1:

        cnt += 1



print(cnt)



N = int(eval(input()))
list = list(map(int, input().split()))
cnt = 0
li = []
for count, i in enumerate(list):
    if count % 2 == 0:
        li.append(i)
for j in range(len(li)):
    if li[j] % 2 == 1:
        cnt += 1
print(cnt)

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

-N = int(eval(input())) -list = list(map(int, input().split())) +n = int(eval(input())) +a = list(map(int, input().split())) -li = [] -for count, i in enumerate(list): -    if count % 2 == 0: -        li.append(i) -for j in range(len(li)): -    if li[j] % 2 == 1: +for i in range(1, len(a) + 1): +    if i % 2 == 1 and a[i - 1] % 2 == 1: