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 and a[i] % 2 != 0:
        ans += 1
print(ans)
#import numpy as np
#import functools
#import operator
#from itertools import combinations as comb
#from itertools import combinations_with_replacement as comb_with
#from itertools import permutations as perm
#import collections as C #most_common
#import math
#import sympy

N = int(input())
#N,K,d= map(int,input().split())
A = list(map(int,input().split()))
#S = str(input())
#T = str(input())
c=0

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

cnt = 0

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

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

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

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

masu = [int(i) for i in input().split(' ')]

count = 0
for i in range(len(masu)):
  if (i+1)%2 == 0 and masu[i]%2 == 1:
    count += 1
    
print(count)
n = int(input())
A = list(map(int,input().split()))
ans = 0
for i in range(n):
    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==1 and a[i]%2==1:
    ans+=1
print(ans)
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
n = ii()
A = iil()
cnt = 0
for i,item in enumerate(A):
    if i%2==1 and item%2==1:
        cnt+=1
print(cnt)
N = int(input())
a = list(map(int, input().split()))
ans = 0
for i, name in enumerate(a):
    if i % 2 == 1 and name % 2 == 1:
        ans += 1
print(ans)
N=int(input())
l=list(map(int,input().split()))
cnt= 0
for i in range(N):
    if i%2 == 1 and l[i]%2 ==1:
        cnt += 1
print(cnt)
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(len(a)):
    if a[i]%2 != 0 and i%2 != 0: ans+=1
print(ans)
N = int(input())
a = [int(x) for x in input().split()]

count = 0

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

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

print(c)
n = int(input())
As = list(map(int, input().split()))
ans = 0

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

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

for i in range(1, n, 2):
  if a[i] % 2 == 1:
    
    count += 1
print(count)
import math

n = int(input())
aL = list(map(int, input().split(" ")))

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

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


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

ans = 0
for i in range(n):
    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==1 and a[i]%2==1):
    ans += 1
print(ans)
a = int(input())
b = input().split()
x = 1
y = 0
for i in range(int(a / 2)):
    if int((int(b[x]) + 1) % 2) == 0:
        y = y + 1
    x = x + 2
print(y)
#: Author - Soumya Saurav
import sys,io,os,time
from collections import defaultdict
from collections import OrderedDict
from collections import deque
from itertools import combinations
from itertools import permutations
import bisect,math,heapq
alphabet = "abcdefghijklmnopqrstuvwxyz"

input = sys.stdin.readline

########################################

n = int(input())
arr = list(map(int , input().split()))
ans = 0
for i in range(n):
	if arr[i]&1 and i&1:
		ans+=1
print(ans)
N=int(input())
input=input()
masu=[int(r) for r in input.split()]
ans=[]

for i in range(N):
  if masu[i]%2==1 and i%2:
    ans.append(i)

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

cnt = 0
num_iter = n//2
for i in range(num_iter):
    if a[i*2+1] % 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!=0 :
        count+=1
        
print(count)
N = int(input())
lst = list(map(int, input().split()))
unko = 0
for i in range(len(lst)):
    if i % 2 == 0:
        continue
    elif lst[i] % 2 == 0:
        continue
    else:
        unko += 1
print(unko)
N = int(input())
ans = 0
a = list(map(int, input().split()))

for i in range(N):
    if a[i] % 2 != 0 and i % 2 != 0:
        ans+=1
print(ans)
n = int(input())
a = list(map(int,input().split()))
total = 0
for i in range(len(a)):
    if a[i]%2==1 and i%2==1:
        total += 1
print(total)
N=int(input())
a=list(map(int, input().split()))
ans=0
for i in range(N):
  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==1) and (A[i]%2==1):
        ans += 1
print(ans)
N = int(input())
a = [int(i) for i in input().split()] 

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

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

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

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

cnt = 0
for i, x in enumerate(s):
    if i % 2 == 1 and x % 2 == 1:
        cnt += 1
print(cnt)
def main():
    N = int(input())
    a_lst = list(map(int, input().split()))
    count = 0

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

        if a_lst[i] % 2 != 0:
            count += 1

    print(count)


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

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

N = int(input())
A = [int(_) for _ in input().split()]

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

for i in range(N):
  number.append(int(input[i]))
  if i % 2 == 1:
    if number[i] % 2 == 1:
      total += 1

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


ans = 0
for i in range(n):
    if i%2==1 and A[i]%2==1:
        ans += 1
    else:
        continue
print(ans)
v = int(input())
n = list(map(int, input().split(' ')))
c = 0
for i in range(0, v):
    if n[i] %2 == 1 and i%2 == 1:
        #print(n[i])
        c += 1
print(c)
N = input()
a = list(map(int, input().split()))

answer = 0
for i, a in enumerate(a):
    if i % 2 == 1 and a % 2 == 1:
        answer += 1
print(answer)
N = int(input())
res=[0] * 10050
for x in range(1,45):
    for y in range(1,45):
        for z in range(1,45):
            k=x*x+y*y+z*z+x*y+y*z+z*x
            if k>=10050: continue
            res[k]+=1
for i in range(N):
    print(res[i+1])
n = int(input())
a = list(map(int, input().split()))
odd_lst=a[1::2]
count=0
for i in odd_lst:
  if 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 != 0:
        ans += 1
print(ans)
n= int(input())
li=list(map(int,input().split()))
a=int(0)
for i in range(1,n,2):
    if li[i]%2==1:
        a+=1
    else:
        a+=0
print(a)
import numpy as np

n = int(input())
a = list(map(int, input().split()))
a = [a[i] for i in range(n) if i % 2 == 1]
a = np.array(a)
ans = np.sum(a % 2 == 1)
print(ans)
n = int(input())
a = list(map(int, input().split()))

la = a[1::2]
ans = 0

for i in la:
    if 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==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==1:
      if a[i]%2==1:
         ans+=1
print(ans)
n=int(input())
l=list(map(int,input().split()))
print(l)
l=l[0::2]
print(l)
a=0
for i in l:
    if(i%2==1):
        a+=1
print(a)
N=int(input())
a=[int(x) for x in input().split()]
cnt=0
for i in range(N):
  if i%2==1 and a[i]%2==1:
    cnt+=1
print(cnt)
n = int(input())
num = list(map(int, input().split()))

cnt = 0
for i in range(1, n // 2 + 1):
    if num[2*i - 1] % 2 == 1:
        cnt += 1
print(cnt)
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)
try:
  n=int(input())
  arr=[int(i) for i in input().split()]
  ans=0
  for i in range(1,n,2):
    if arr[i]%2!=0:
      ans+=1
  print(ans)
except:
  pass
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 = tuple(map(int, input().split()))
ans = 0
for i, a in enumerate(A):
    if i%2 == 1 and a%2==1:
        ans += 1
print(ans)
n = int(input())
a = list(input().split())

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

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

for i, b in enumerate(a):
  if i % 2 == 1 and b % 2 == 1:
      cnt += 1

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

if N == 1 and a[0]%2 ==1:
  print(1)
else:
  odd = a[1::2]
  for i in odd:
    if i%2 == 1:
      ans += 1

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



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

ans = 0

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

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

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

    print(cnt)




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

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

print(num)
N=int(input())
input=input()

masu=[int(r) for r in input.split()]
ans=[]

for i in range(1,N+1):

    if masu[i-1]%2==1 and (i-1)%2==1:
        ans.append(i)

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

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

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

count = 0

for i in range(N):
  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(1,len(a),2):
    if a[i]%2==1:
        ans+=1
print(ans)
n = int(input())
l=[]
l2=[]
a = list(map(int,input().split()))

for i in a:
    if i % 2 !=0:
        l.append(i)
for k,v in enumerate(l,1): 
    if k % 2 != 0:
        l2.append(k)
print(len(l2))
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)
# -*- coding: utf-8 -*-


N = input()
del N
I1 = input().split()

i = 0

for a in range(len(I1)):
    if (int(I1[a]) * a)%2 == 1:
        i += 1

print(i)
n = int(input())
l = list(map(int,input().split()))
count = 0
for i in range(n):
    if i%2 == 1 and l[i]%2 == 1:
        count += 1
print(count)
N = int(input())
res=[0 for _ in range(10050)]
for x in range(1,105):
    for y in range(1,105):
        for z in range(1,105):
            k=x*x+y*y+z*z+x*y+y*z+z*x
            if k<10050:
                res[k]+=1
for i in range(N):
    print(res[i+1])
N = int(input())
data = list(map(int, input().split()))

data = data[1::2]

cnt = 0

for i in data:
  if i % 2 == 1:
    cnt += 1
    
print(cnt)
N = int(input())
a = [int(x) for x in input().split()]
count = 0

for x in range(N):
    if (x % 2 != 0) and (a[x] % 2 != 0):
        count += 1

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

ans = 0
for i in range(N):
  if i % 2 == 1 and A[i] % 2 == 1:
    ans += 1
    
print(ans)
if __name__ == "__main__":
    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=[int(i) for i in input().split()]
ans=0
for i,a in enumerate(A):
    if (i+1)%2==0 and a%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 == 1:
        if 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)):
  if i%2 ==1:
    if a[i]%2 ==1:
      count = count + 1
    else:
      pass
  else:
    continue

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

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

ans = 0

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

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

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

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

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

C=0

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

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

cnt = 0
for idx, ai in enumerate(a):
  if idx % 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:
        continue
    if A[i] % 2 == 1:
        cnt += 1

print(cnt)
'''
5
1 3 4 5 7
'''
lens = int(input())
vals = [0] + [int(x) for x in input().split()]
odds = 0
for i in range(1, lens+ 1):
  if i % 2 == 0 and vals[i] % 2 == 0:
    odds += 1
print(odds)
N = int(input())
nombres = [int(x) for x in input().split()]
k = 0
for indexe,nombre in enumerate(nombres):
    if (indexe%2 == 1 and nombre%2 == 1):
        k += 1
print(k)
N = int(input())
A = list(map(int, input().split()))
Re = []
for i in range(N):
  if i % 2 != 0:
    if A[i] % 2 != 0:
      Re.append(i)
ans = len(Re)
print(ans)
n = int(input())
a = map(int, input().split())
ans = 0
i = 0
for x in a:
  	if i % 2 == x % 2 == 1: ans += 1
  	i += 1
print(ans)
N = int(input())
A = list(map(int, input().split()))

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

count = 0
for i in range(len(an)):
    if (i % 2 == 0):
        continue
    if (an[i] % 2 != 0):
        count = count + 1

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

ans = 0

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

print(ans)
num1 = int(input())
num = (int(x) for x in input().split())

count = 0

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

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

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

for i in range(N):
	if i%2==1 and a_ls[i]%2==1:
		ans+=1

print(ans)


# 2darray [[0] * 4 for i in range(3)]
input()

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

b = 0
for i, n in enumerate(a):
  if i % 2 == 0 or n % 2 == 0:
    continue
  b += 1
print(b)
n = int(input())
l = list(map(int, input().split()))

l1 = l[1::2]
cnt = 0
for i in l1:
    if i % 2 == 1:
        cnt += 1
print(cnt)
N=int(input())
li = list(map(int,input().split()))
coun=0
for i,h in enumerate(li):
  if i % 2 == 1 and h % 2 == 1:
    coun+=1
print(coun)
N = int(input())
a = list(map(int,input().split()))
count=0
for i in range(N):
    if(i%2==1 and a[i]%2==1):
        count+=1
print(count)
N=int(input())
a=input().split()
cnt=0
for i in range(N):
  if i%2==1 and int(a[i])%2==1: cnt+=1
print(cnt)
N = int(input())
a = list(map(int, input().split()))
cnt =0
for i in a[1::2]:
    if not i % 2 == 0:
        cnt = cnt +1
print(cnt)
N = int(input())
A = list(map(int,input().split()))
ans = 0

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

print(ans)
N = int(input())
A = [int(x) for x in input().split()]
ans = 0
for i in range(1, N, 2):
    if A[i]%2 == 1:
        ans += 1
print(ans)
n = int(input())
lst = list(map(int, input().split()))
ans = 0
for i in range(n):
  if i%2 == 1 and lst[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 != 0:
      ans += 1
print(ans)
N = int(input())
a = [int(x) for x in input().split()]
 
 
c = 0
 
for i in range(N):
  if i % 2 == 1 and a[i] % 2 ==1:
    c += 1
print(c)
n = int(input())

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

count = 0

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

print(count)
N = int(input())
s = list(map(int, input().split()))

count = 0

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

if (N%2 == 1) and (s[N-1]%2 == 1):
  count = count + 1

print(count)
if __name__ == "__main__":
    n = int(input())
    a = list(map(int, input().split()))

    ans = 0
    for i, num in enumerate(a):
        if (i+1)%2 == 1: continue
        if num%2 ==1: ans += 1
    print(ans)
n = int(input())
count = 0
arr = [int(i) for i in input().split()]
for i in range(n):
    if i % 2 == 1 and arr[i] % 2 == 1:
        count += 1
print(count)
import sys
input = sys.stdin.readline

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

a = [a[i] for i in range(n) if i%2==1 and a[i]%2==1]
print(len(a))
N = int(input())
A = list(map(int, 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())
l = list(map(int,input().split()))
ans = 0
for i in range(n):
    if i%2 == 1 and l[i]%2 == 1:
        ans += 1
print(ans)
n=int(input())
arr=list(map(int,input().split()))
cnt=0
for i in range(n):
    if i%2==1 and arr[i]%2==1:
        cnt+=1
print(cnt)
N = int(input())
A = [int(x) for x in input().split()]

count = 0
for i in range(N):
    if i % 2 == 1 and A[i] % 2 == 1:
        count += 1
print(count)
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def 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 != 0:
            ans += 1
    
    print(ans)


if __name__ == "__main__":
    main()
N = int(input())
A = list(map(int, input().split()))
count = 0

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

print(count)
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)
import sys

sys.setrecursionlimit(10 ** 7)

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

#%%
cnt = 0
for i, j in enumerate(A):
    if i % 2 == 1 and j % 2 == 1:
        cnt += 1

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

s = 0

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

print(s)
n = int(input())
aas = list(map(int, input().split()))
res = 0
for i in range(n):
    if i%2!=0 and aas[i]%2!=0:
        res += 1
print(res)
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)