peterverebics/CodeNet_Python_118 huggingface dataset:
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
  if i % 2 == 0:
    if a[i] % 2 == 1:
      ans += 1
print(ans)
N = int(input())

num_list = list(map(int,input().split()))
cnt = 0
for i in range(N):
  if (i+1)%2==1 and num_list[i] % 2 ==1:
    cnt+=1
print(cnt)
n = int(input())
a_list = list(map(int,input().split()))
sum = 0
for i in range(0,n,2):
    if(a_list[i] % 2 != 0):
        sum += 1
print(sum)
N=int(input())
A=list(map(int,input().split()))
print(sum([i%2==0 and A[i]%2 for i in range(N)]))
import sys

N = int(sys.stdin.readline())
#L,R,d = map(int, sys.stdin.readline().split())

ans = 0

for i,n in enumerate(map(int, sys.stdin.readline().split())):
    if i % 2 != 0:
        continue
    if n % 2 == 0:
        continue
    ans += 1


print(ans)
import sys

def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))  #空白あり

N = I()
a = LI()

ans = 0
for i in range(0,N,2):
    if a[i] % 2 == 1:
        ans += 1

print(ans)
from itertools import product
N = int(input())
a = list(map(int,input().split()))
#L, R, d=map(int,input().split())
#C = []
# for i in range(N):
#    C.append((input().replace(".","0").replace("#","1")))
# S=list(map(int,input().split()))
# B=list(map(int,input().split()))
count = 0
for i in range(N):
    if (i+1) %2 != 0 and a[i] %2 !=0:
        count+=1

print(count)
n = int(input())
L = list(map(int, input().split()))
ans = 0
for i in range(n):
    if i % 2 == 0 and L[i] % 2:
        ans += 1
print(ans)
n = int(input())
a = list(map(int,input().split()))
ans = 0
for i in range(n):
    if i%2 == 0 and a[i]%2:
        ans += 1
print(ans)
N=int(input())
a=list(map(int,input().split()))
ans=0
for i in range(N):
    if (i+1)%2==1 and a[i]%2==1:ans+=1
print(ans)
ma = lambda :map(int,input().split())
ni = lambda:int(input())
import collections
import math
import itertools
gcd = math.gcd
n = ni()
A  = list(ma())
c = 0
for i in range(n):
    if i%2==0 and A[i] %2==1:
        c+=1
print(c)
n=int(input())
a=list(map(int,input().split()))
count=0
for i in range(n):
    if a[i]%2!=0 and i%2==0:
        count+=1
print(count)
N = int(input())
a=list(map(int,input().split()))
count=0
for i in range(1,N+1):
  if i%2==1:
    if a[i-1]%2==1:
      count +=1
print(count)
N = int(input())
a = list(map(int, input().split()))
cnt = 0
for i in range(0, N):
    if (i+1) % 2 != 0 and a[i] % 2 != 0:
        cnt += 1
print(cnt)
N=int(input())

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

ans = 0
for i, ai in enumerate(a):
    i += 1
    if i % 2 == 1 and ai % 2 == 1:
        ans += 1
print(ans)
N = int(input())
A = list(map(int, input().split()))

count = 0

for i in range(len(A)):
    if (i + 1) % 2 == 1 and A[i] % 2 == 1:
        count += 1

print(count)
n = int(input())
A = list(map(int, input().split()))
cnt = 0
i = 1
for a in A:
    if i % 2 == 1 and a % 2 == 1:
        cnt += 1
    i += 1

print(cnt)
input()
a = [int(i) for i in input().split()]

res = 0
for i in range(len(a)):
    if i % 2 == 0 and a[i] % 2 == 1:
        res += 1

print(res)
N = int(input())
a = list(map(int, input().split()))

ans = 0

for i in range(0,N,2):
    if a[i]%2==1:
        ans+=1
print(ans)
n=int(input())
a=list(map(int,input().strip().split()))[:n]
counter=0
for i in range (0,n,2):
    if(a[i]%2==1):
        counter+=1

print(counter)
N = int(input())
a = list(map(int, input().split()))
cnt = 0
for i in range(0, N, 2):
    if a[i] % 2 != 0:
        cnt += 1
print(cnt)
n = int(input())
a = list(map(int,input().split()))

count = 0
for i,num in enumerate(a):
    if (i+1)%2==1 and num%2==1:
        count+=1


print(count)
N = int(input())
a = list(map(int, input().split()))
ans = 0
for i, v in enumerate(a):
    if (i+1)%2 and (v)%2:
        ans += 1
print(ans)
import sys


def resolve(in_):
    n = int(in_.readline())
    a = tuple(map(int, in_.readline().split()))
    return sum(1 for i, v in enumerate(a, 1) if i % 2 and v % 2)


def main():
    answer = resolve(sys.stdin.buffer)
    print(answer)


if __name__ == '__main__':
    main()
n = int(input())
a = list(map(int, input().split()))

ans = 0
for i in range(n):
    if i % 2 == 0 and a[i] % 2 == 1:
        ans += 1

print(ans)
n = int(input())
x = list(map(int, input().split()))
count = 0
for i in range(n):
    if (i+1) % 2 != 0 and x[i]%2 != 0:
        count += 1

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

count = 0
for i, a in enumerate(A):
    if (i + 1) % 2 == 1 and a % 2 == 1:
        count += 1
print(count)
N = int(input())
row = list(map(int, input().strip().split()))
count=0
for i in range(0,N,2):
  if row[i]%2==1:
    count+=1
print(count)
N=int(input())
a=list(map(int,input().split()))
count=0
for idx,i in enumerate(a):
    if (idx+1)%2==1 and i%2==1:count+=1
print(count)
n = map(int, input().split())
a = list(map(int, input().split()))

cnt = 0
for i, ai in enumerate(a):
    if (i + 1) % 2 == 1 and ai % 2 == 1:
        cnt += 1
print(cnt)
n=int(input())
a=list(map(int,input().split()))

cnt=0

for i in range(n):
    if i % 2==0 and a[i]%2==1:
        cnt+=1

print(cnt)
N = int(input())
a = list(map(int, input().split()))
cnt = 0
for i, k in enumerate(a):
    if (i+1) % 2 == 1 and k % 2 == 1:
        cnt += 1
print(cnt)
n, *a = map(int, open(0).read().split())
cnt = 0
for i in range(0, n, 2):
  if a[i] % 2 == 1 :
    cnt += 1
print(cnt)
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

n=ni()
a=nl()
cnt=0
for i in range(n):
  if (i+1)%2==1 and a[i]%2==1:
    cnt+=1

print(cnt)
n=int(input())
a=list(map(int,input().split()))
b=[i&1 for i in a[::2]]
print(sum(b))
import sys


def _i(): return int(sys.stdin.readline().strip())


def _ia(): return map(int, sys.stdin.readline().strip().split())


def main():
    n = _i()
    cnt = 0
    for i, ai in enumerate(_ia()):
        if i % 2 == 1:
            continue
        cnt += (ai % 2)
    return cnt


if __name__ == "__main__":
    print(main())
n = int(input())
c = 0
for a in [*map(int, input().split())][::2]:
    if a%2: c += 1
print(c)
n = int(input())

a = list(map(int, input().split()))
ans = 0
for i in range(0, n, 2):
    if a[i] % 2 != 0:
        ans += 1

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

C=0

for i in range(1,N+1):
    if i%2!=0:
        if a[i-1]%2!=0:
            C+=1

print(C)
n = int(input())
a = list(map(int, input().split()))

ans = 0
for i, e in enumerate(a, 1):
    if i % 2 and e % 2:
        ans += 1

print(ans)
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

n=ii()
a=li()

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

ans = 0
for i, j in enumerate(a):
    if i % 2 == 0 and j % 2 == 1: ans += 1
print(ans)
def main():
    n = int(input())
    
    a = list(map(int,input().split()))
    a = [0] + a
    
    count = 0
    for i in range(1,n+1):
        if i%2==1 and a[i]%2==1:
            count+=1
    print(count)
    
if __name__=='__main__':
    main()
import sys

read = sys.stdin.read
readline = sys.stdin.readline

n = int(readline())
#print(n)
a_list = list([int(x) for x in readline().rstrip().split()])
#print(a_list)
count = 0
for i in a_list[::2]:
    #print(i)
    if i % 2 != 0:
        count += 1

print(count)
n = int(input())
lst = list(map(int, input().split()))
cnt = 0
for i in range(0,n,2):
  if lst[i] % 2 == 1:
    cnt += 1
print(cnt)
N = int(input())
A = list(map(int, input().split()))

count = 0
for i in range (0, N):
    if i%2 ==0 and A[i]%2==1:
        count+=1

print(count)
N=int(input())
a=list(map(int,input().split()))
cnt=0
for i in range(N):
    if (i+1) % 2 != 0: #奇数
        if a[i] % 2 !=0:
            cnt+=1
print(cnt)
n=int(input())
arr=list(map(int,input().split()))
cnt=0
for i in range(1,n+1):
    if i%2!=0 and arr[i-1]%2!=0:
        cnt+=1
print(cnt)
import sys


if(__name__ == "__main__"):

    N = int(input().strip())

    AStr = input().strip().split()
    AList = [0] * N
    for i in range(N):
        AList[i] = int(AStr[i])

    N_odd = 0
    for i in range(0, N, 2):
        if(AList[i]%2!=0):
            N_odd+=1
    print(N_odd)
N = int(input()) 
masu_list = list(map(int, input().split()))
result = 0

for i, masu in enumerate(masu_list):
    i = i+1
    if i % 2 == 1:
        if masu % 2 == 1:
            result = result + 1

print(result)
N = int(input())
A = [int(x) for x in input().split()]

ans = 0
for i in range(N):
    if i%2==0 and A[i]%2==1:
        ans += 1
print(ans)
# vim: fileencoding=utf-8


def main():
    n = input()
    li = list(map(int, input().split()))
    ans = 0
    for a in li[0::2]:
        if a % 2 == 1:
            ans += 1
    print(ans)


if __name__ == "__main__":
    main()
N = int(input())
A = list(map(int,input().split()))
count = 0
for i in range(0,N,2):
  if A[i]%2 != 0:
    count += 1
print(count)
N = int(input())
A = list(map(int, input().split()))
res = sum(1 if a % 2 == 1 else 0 for a in A[::2])
print(res)
n = int(input())
a = list(map(int, input().split()))


ans = 0
for item in a[::2]:
  if item %2 == 1:
    ans += 1


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

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

total = 0
for i, a in enumerate(A):
  if a % 2 == 1 and (i + 1) % 2 == 1:
    total += 1
    
print(total)
import sys
readline = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
#mod = 998244353
INF = 10**18
eps = 10**-7

N = int(readline())
A = list(map(int,readline().split()))
ans = 0
for i in range(N):
    if i%2 == 0 and A[i]%2 == 1:
        ans += 1
print(ans)
n = int(input())

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

c = 0
for i in range(n) :
    if i % 2 == 0 :
        if a[i] % 2 == 1 :
            c += 1
print(c)
N = int(input())
ans = 0
A = list(map(int, input().split()))
for a in A[::2]: 
  if a%2 != 0:
  	ans += 1
print(ans)
n = int(input())
*a, = map(int, input().split())
ans = 0

for i in range(1, n + 1):
    if (i % 2) and (a[i-1] % 2):
        ans += 1

print(ans)
n=int(input())
a=list(map(int,input().split()))
ans=0
for i in range(n):
    if (i+1)%2==1 and a[i]%2==1:
        ans+=1
print(ans)
N = int(input())
a = list(map(int,input().split()))
ans = 0
for i in range(N):
    if i % 2 == 0 and a[i] % 2 == 1:
        ans += 1
print(ans)
n=int(input())
#a,b=map(int,input().split())
al=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]

count=0

for i in range(1,n+1):
    a=al[i-1]
    if i%2!=0 and a%2!=0:
        count+=1
print(count)
N = int(input())
a = list(map(int, input().split()))
count = 0
for i in range(N):
    if ((i + 1) % 2 == 1 and a[i] % 2 == 1):
        count += 1
print(count)
N = int(input())
A = list(map(int,input().split()))
ans = 0

for n in range(N):
  if n%2==0 and A[n]%2==1:
    ans+=1

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

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

for i in range(N):
  if (i+1) % 2 == 1 and A[i] % 2 == 1:
    c += 1
else:
  print(c)
N = int(input())
lst = list(map(int, input().split()))
cnt = 0
for i in range(N):
  if i % 2 == 0 and lst[i] % 2 == 1:
    cnt = cnt + 1 
print(cnt)
N = int(input())
A = list(map(int,input().split()))
count =0
for i in range(N):
    if i%2 == 0 and A[i]%2 == 1:
        count += 1
print(count)
import sys
sys.setrecursionlimit(10**6)


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


if __name__ == '__main__':
    main(sys.stdin.readline, print)
N = int(input())
a = list(map(int, input().split()))
p = 0
for i in range(0, N):
    if (i + 1) % 2 == 1 and a[i] % 2 == 1:
        p = p + 1
    else:
        p = p
print (p)
N= int(input())
a = list(map(int,input().split()))

counter=0
for i in range(N):
  if (i+1)%2==1:
    if a[i]%2==1:
      counter+=1
print(counter)
n = int(input())
a = [int(tmp) for tmp in input().split(' ')]
a = [a[tmp] for tmp in range(n) if tmp % 2 == 0]
cnt = 0
for tmp in a:
    if tmp % 2 == 1:
        cnt += 1

print(cnt)
s1 = input()
s2 = input()

a = int(s1)
b = s2.split()

c = (a + 1) // 2;

cnt = 0;

for i in range(c):
    if int(b[2 * i]) % 2 == 1:
        cnt = cnt + 1


print(cnt)
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
    if (i + 1) % 2 == 1 and a[i] % 2 == 1:
        ans += 1
print(ans)
total_number = int(input())
input_list = input().split(" ")
list_count = 0
answer_count = 0
for i in input_list:
	list_count += 1
	if list_count % 2 == 1:
		if int(i) % 2 == 1:
			answer_count += 1
print(answer_count)
#!/usr/bin/env python3
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(0, n, 2):
    if a[i] % 2:
        ans += 1

print(ans)
n=int(input())
s=list(map(int,input().split()))


count=0
for i in range(n):
  if i%2==0 and s[i]%2!=0:
    count+=1

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

ans=0

for i in range(N):
    if i%2==1:
        continue

    if ai[i] %2==1:
        ans+=1
print(ans)
N=int(input())
list = list(map(int, input().split()))
list.insert(0,0)
l=len(list)
i=1
r=0

while(i<l):
  if(i%2!=0):
    if(list[i]%2!=0):
      r+=1
  i+=1
print(r)
import os
import sys
from collections import defaultdict, Counter
from itertools import product, permutations,combinations, accumulate
from operator import itemgetter
from bisect import bisect_left,bisect
from heapq import heappop,heappush,heapify
from math import ceil, floor, sqrt
from copy import deepcopy


def main():
    n = int(input())
    a_list = list(map(int, input().split()))
    ans = 0
    for i in range(len(a_list)):
        if ((i+1)%2 != 0) and (a_list[i]%2 != 0):
            ans += 1

    print(ans)

if __name__ == '__main__':
	main()
N = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(N):
    if i % 2 == 0 and a[i] % 2 == 1:
        ans += 1
print(ans)
n=int(input())
As = list(map(int,input().split()))
c=0
ans = 0
for a in As:
    c+=1
    if c%2 == 1:
        if a%2 == 1:
            ans+=1
print(ans)
n=int(input())
a=list(map(int,input().split()))
count=0

for i in range(n):
    if a[i]%2==1 and (i+1)%2==1:
        count+=1
    

print(count)
import sys
input = sys.stdin.readline

#n = int(input())
#l = list(map(int, input().split()))

'''
a=[]
b=[]
for i in range():
    A, B = map(int, input().split())
    a.append(A)   
    b.append(B)'''

n=int(input())
cnt=0
a=list(map(int, input().split()))
for i in range(0,n,2):
    if a[i]%2==1:
        cnt+=1
print(cnt)
n=int(input())
arr=list(map(int,input().split()))
ct=0
for _ in range(n):
  if (_+1)%2==1 and arr[_]%2==1:
    ct += 1
print(ct)
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
  if (i + 1) % 2 == 1 and a[i] % 2 == 1:
    ans += 1
print(ans)
n = int(input())
l = list(map(int, input().split(' ')))
 
ans = 0
for i in range(0, n, 2):
  if l[i] % 2 == 1:
    ans += 1
print(ans)
# 以下の 2 つの条件の両方を満たすマスはいくつありますか？
# マスの番号は奇数
# マスに書かれた整数は奇数
n = int(input())
a = list(map(int, input().split()))
# 2 つの条件の両方を満たすマス
ans = 0
for i in range(n):
    # マスの番号は奇数
    # マスに書かれた整数は奇数
    if (i+1) % 2 == 1 and a[i] % 2 == 1:
        ans += 1
print(ans)
n = int(input())
a = list(map(int, input().split()))
count = 0
for i in range(len(a)):
     j = i + 1
     if j % 2 == 0:
         continue
     if a[i] % 2 == 0:
         continue
     count += 1

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

print(count)
n=int(input())
a=list(map(int,input().split()))

ans=0
for i in range(0,n,2):
  if a[i]%2==1:
    ans += 1
print(ans)
n = int(input())
an = [int(a) for a in input().split()]

answer = 0
for i in range(0,len(an),2):
  if an[i]%2 == 1:
    answer += 1

print(answer)
N = int(input())
a = list(map(int, input().split(' ')))

ans = 0
for i in range(0,N,2):
    if a[i] % 2 == 1:
        ans += 1

print(ans)
n = int(input())
a = list(map(int,input().split()))

ans=0
for i in range(n):
    if (i+1)%2==1:
        if a[i]%2==1:
            ans+=1
print(ans)
N = int(input())
a = list(map(int,input().split()))
count = 0 
for i,j in enumerate(a):
    if((i+1)%2==1):
        if(j%2 == 1):
            count +=1
print(count)
# coding: utf-8
# Your code here!

n = int(input())
a = list(map(int,input().split()))
ans = 0
for i in range(0,n,2):
    ans += a[i]%2 == 1
    
print(ans)
N = int(input())
a = [i for i in map(int, input().split())]
count = 0
for i in range(N):
    j=i+1
    if j%2 == 1 and a[i]%2 == 1:
        count +=1 
print(count)
n = int(input())
la = list(map(int, input().split()))
ans = 0
for i in range(len(la)):
  if la[i]%2==1 and (i+1)%2==1:
    ans += 1
print(ans)
N = int(input())
A = list(map(int, input().split()))

cnt = 0
for a in A[::2]:
    if a % 2 != 0:
        cnt += 1
print(cnt)
N=int(input())
A = list(map(int, input().split()))
c=0
for i in range(0,len(A),2):
  if A[i]%2==1:
    c+=1
print(c)
N = int(input())
a = []
a = input().split()

count = 0

for i in range(int(N/2)):
  cd = 2 * i - 2
  jd = int(a[cd])
  if jd % 2 == 1:
    count += 1
    

print(count)
N = int(input())
a = list(map(int,input().split()))
cnt = 0
for i in range(N - 1):
    if (i + 1) % 2 == 1 and a[i + 1] % 2 ==1:
            cnt += 1
    else:
            cnt += 0
print(str(cnt))
n=int(input())
a=list(map(int,input().strip().split()))[:n]
counter=0
for i in range (1,n,2):
    if(a[i]%2!=0):
        counter+=1

print(counter)
import sys
input = lambda: sys.stdin.readline().rstrip()

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

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

ans = 0
for i in range(n):
    if ((i % 2) == 0):
        continue
    if ((a[i] % 2) != 0):
        ans += 1

print(ans)
N = int(input())
an = map(int, input().split(" "))
ans = 0
for i, ai in enumerate(an):
    if i % 2 == 1 and ai % 2 == 1:
        ans += 1
print(ans)
n = int(input())
masu = list(map(int, input().split()))
count = 0
for N in range(n):
  if (N*masu[N])%2 == 1:
    count += 1
print(count)
n = input()
num = list(map(int,input().split()))
print(num)
# mul = int(input().split())
cnt = 0
for i in range(len(num)):
    if(i % 2 != 0 and num[i] %2 != 0):
        cnt += 1
print(cnt)
N=int(input())
a=[int(i) for i in input().split(" ")]

retval=0
for i,ai in enumerate(a):
    if i%2==0:
        continue
    if ai%2==1:
        retval+=1
print(retval)
n=int(input())
As = list(map(int,input().split()))
print(As)
c=0
ans = 0
for a in As:
    c+=1
    if c%2 == 0:
        if a%2 == 1:
            ans+=1
print(ans)
N = int(input())
input_line = list(map(int, input().split(' ')))
ans = 0
for i in range(N):
    if((i*input_line[i])%2 == 1):
        ans += 1
print(ans)
N = int (input())
a=[]
a = list(map(int, input().split()))
count=0

for i in range(0,N):
  if i%2==1 and a[i]%2==1:
    count+=1
print(count)
n = int(input())
num = list(map(int,input().split()))
# print(type(num[0]))
cnt = 0
for i in range(2,n+1,2):
    if(abs(num[i-1]) % 2 != 0):
        cnt += 1
print(cnt)
N=int(input())

a=[0]*N
a=list(map(int,input().split()))
ans=0
for i in range(1,N+5,2):
    if(N-1<i):
        break
    if(a[i]%2==1):
        ans=ans+1
print(ans)
num=input()

masu=list(map(lambda x:int(x),input().split()))

masu=[i for i in masu if i%2!=0 and (masu.index(i)+1)%2!=0]
print(len(masu))
N = int(input())
a = list(map(int, input().split()))

ans  = 0
for i in range(N):
    if i%2 == 0:
        continue
    if a[i]%2 == 0:
        continue
    ans += 1

print(ans)
# coding: utf-8
import sys
#from operator import itemgetter
sysread = sys.stdin.buffer.readline
read = sys.stdin.buffer.read
#from heapq import heappop, heappush
#from collections import defaultdict
sys.setrecursionlimit(10**7)
#import math
#from itertools import product, accumulate, combinations, product
#import bisect# lower_bound etc
#import numpy as np
#from copy import deepcopy
#from collections import deque



def run():
    N, *A = map(int, read().split())
    ans = 0
    for i in range(1, N, 2):
        if A[i] % 2:
            ans += 1

    print(ans)



if __name__ == "__main__":
    run()
N = int(input())
A = list(map(int,input().split()))
count = 0
for i in range(N):
    if A[i] % 2 != 0 and i%2!=0:
        count += 1
print(count)
n = int(input())
a = [int(x) for x in input().split()]
cnt = 0
for a0 in a[::1]:
    if a0%2 == 1:
        cnt += 1
print(cnt)
N = int(input())
A = list(map(int, input().split()))
ans = 0

for i, a in enumerate(A):
    if (i + a) % 2 == 1:
        ans += 1
print(ans)
N = int(input())
A = list(map(int,input().split()))
O = [i for i in range(N) if(i%2==1 and A[i]%2==1)]
print(len(O))
n = int(input())
num = list(map(int,input().split()))
# print(num)
# mul = int(input().split())
cnt = 0
for i in range(2,n+1,2):
    if(num[i-1] % 2 != 0):
        cnt += 1
print(cnt)
n=input()
x=list(map(int,input().split()))
ans=0
for i in x[0::2]:
    if i%2==1:
        ans+=1
        print(i)
print(ans)
in_str = input()
N = int(in_str)
in_list = input().split(' ')
count = 0

for i in range(N):
    if i%2==0:
        print(i)
        if int(in_list[i])%2==1:
            count += 1
            print(i)
            print(count)

print(count)
a = int(input())
b = list(map(int, input().split()))
count = 0

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

count = 0

for i in range(len(s)):
  if (i%2 == 1) and s[i]%2 == 1:
    count = count + 1

print(count)
n = int(input())
a = list(map(int, input().split()))

ans = 0
for i in range(n//2):
    if a[2*i] % 2 == 1:
        ans += 1
print(ans)
n =int(input())
li =list(map(int,input().split()))
count =0
for i in range(1,len(li),2):
    if li[i] % 2 !=0:
        count +=1
    

print(count)
a = int(input())
n = list(map(int,input().split()))
cnt  = 1
ans = 0
for i in n:
    cnt = cnt +1
    if cnt % 2 == 1 and i % 2 == 1 :
        ans = ans + 1 
print (ans)
N = int(input())
a = list(map(int, input().split()))
count = 0;
for i in range(0,N):
  if i % 2 == 1:
    if a[i] % 2 == 1:
      count = count+1
print(count)
N=int(input())
li=list(map(int,input().split()))
cnt=0
for i in range(N):

  if li[i]%2!=0 and i%2==1:
    cnt+=1
    
print(cnt)
N = int(input())

tmp = input().split(' ')

a = []
result = []
for i in range(N):
    a.append(int(tmp[i]))
    if (i % 2 == 1 and a[i] % 2 == 1):
        result.append(a[i])

print(len(result))
n =int(input())
a =list(map(int,input().split()))

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

count = 0
for i in range(0,N):
    if i % 2 == 1:
        if a[i] % 2 == 1:
            count = count+ 1

print(count)