N = int(eval(input()))

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

count = 0



for k in range(N+1):

    if k % 2 == 0:

        continue

    else:

        if a[k-1] % 2 != 0:

            count += 1



print(count)

N =int(eval(input()))

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



#print(a)

count = 0



D = []

for i in range(N):

    if i % 2 == 0:

        D.append(i)



#print(D)   



for j in D:

    if a[j] % 2 != 0:

        count += 1

        



print(count)

N = int(eval(input()))
a = list(map(int, input().split()))
count = 0
for k in range(N + 1):
    if k % 2 == 0:
        continue
    else:
        if a[k - 1] % 2 != 0:
            count += 1
print(count)

N = int(eval(input()))
a = list(map(int, input().split()))
# print(a)
count = 0
D = []
for i in range(N):
    if i % 2 == 0:
        D.append(i)
# print(D)
for j in D:
    if a[j] % 2 != 0:
        count += 1
print(count)

+# print(a) -for k in range(N + 1): -    if k % 2 == 0: -        continue -    else: -        if a[k - 1] % 2 != 0: -            count += 1 +D = [] +for i in range(N): +    if i % 2 == 0: +        D.append(i) +# print(D) +for j in D: +    if a[j] % 2 != 0: +        count += 1