N = int(eval(input()))

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



result = 0

for i in range(N):

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

        result += 1

print(result)

N, *a = list(map(int, open(0).read().split()))



print((sum(1 for e in a[::2] if e % 2 == 1)))

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

N, *a = list(map(int, open(0).read().split()))
print((sum(1 for e in a[::2] if e % 2 == 1)))

-N = int(eval(input())) -a = list(map(int, input().split())) -result = 0 -for i in range(N): -    if (i + 1) % 2 == 1 and a[i] % 2 == 1: -        result += 1 -print(result) +N, *a = list(map(int, open(0).read().split())) +print((sum(1 for e in a[::2] if e % 2 == 1)))