program AIsing2020B
    implicit none
    integer(8)::N,i,ans=0
    integer(8),allocatable,dimension(:)::A
    read*,N
    allocate(A(N))
    read*,A
    do i=1,N,2
        if(mod(A(i),2)==1)ans=ans+1
    end do
    print'(i0)',ans
end program AIsing2020B