program r20711b

implicit none
integer :: i, x, n
integer, allocatable :: a(:)

read *, n

allocate(a(1:n))

x = 0

read *, a(:)

do i = 1, n, 2
 if(mod(a(i),2)==1) then
 x = x + 1
 end if
end do

print *, x

end program r20711b