n = int(input())
a = list(map(int, input().split()))
ans=0
for index, value in enumerate(a):
    if (index+1) % 2 != 0:
        if value % 2 != 0:
            #print(value)
            ans+=1
print(ans)
471b05c4cb595380ae23cd48f33d6af799ec58de
<mask token>

<mask token>
for index, value in enumerate(a):
    if (index + 1) % 2 != 0:
        if value % 2 != 0:
            ans += 1
print(ans)

n = int(input())
a = list(map(int, input().split()))
ans = 0
for index, value in enumerate(a):
    if (index + 1) % 2 != 0:
        if value % 2 != 0:
            ans += 1
print(ans)

n = int(input())
a = list(map(int, input().split()))
ans=0
for index, value in enumerate(a):
    if (index+1) % 2 != 0:
        if value % 2 != 0:
            #print(value)
            ans+=1
print(ans)