program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: n,i,ans=0
    integer(int32), allocatable:: a(:)

    read*, n
    allocate(a(n))
    read*, a(:)
    do i=1,n
        if (mod(a(i),2) == 1 .and. mod(i,2)==1) ans=ans+1
    end do

    print'(i0)', ans
end program main