program abc8
 implicit none
 integer,allocatable::a(:)
 integer::N=0,i,ia=0,ib=0,s=0
 read(*,*)N
 allocate(a(N))
 read(*,*)(a(i),i=1,N
 do ib=1,N
  if(mod(ib,2)==1.and.mod(a(ib),2)==1)then
   s=s+1
  end if
 end do
 print'(i0)',s
end program abc8