      PROGRAM piyo
      IMPLICIT NONE
      INTEGER,PARAMETER :: p = 16
      integer(p) :: n,ans,i
      integer(p),allocatable :: a(:)
      
      read*,n
      allocate( a(n) )
      read*,a
      
      ans = 0
      do i = 1,n
        if( mod(i,2)==1 .and. mod(a(i),2)==1 )then
          ans = ans + 1
        end if
      end do
      
      print*,ans
      
      
      stop
      !debugg
      
      
      
      END PROGRAM