program sample
    implicit none
  
    integer(8) :: i,j,m,n,l,r,d
    integer(8),allocatable :: x(:),y(:)
  
    read(*,*) n
    allocate(x(n))
    read(*,*)x
    m=0
    do i=1,n,2
        if (mod(x(i),2)==1)then
            m=m+1
        end if
    end do
  
    write(*,*) m  
    stop
end program sample
  


  

