require 'set'; require 'prime'; require 'pp'
INF=Float::INFINITY; MOD=10**9+7
n = gets.chomp.to_i
a = gets.chomp.split.map(&:to_i)

ans = 0
n.times do |i|
  if i.even? && a[i].odd?
    ans += 1
  end
end

puts ans
