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

27a49b5343037e55012635d3297c700c04b27eca
<mask token>

<mask token>
print(sum((i + 1) % 2 == 1 and a[i] % 2 == 1 for i in range(N)))

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