# frozen_string_literal: true
N = gets.chomp.to_i
ar = gets.chomp.split.map(&:to_i)

index = 0
ans = ar.inject(0) do |acc, value|
  acc += 1 if index.odd? && value.odd?
  index += 1
  acc
end

puts ans
