n = gets.to_i
a = gets.split.map(&:to_i)

array = []
(1..n).each do |i|
  if i.odd?
    array << i - 1
  end
end

result = []

array.each do |j|
  if a[j].odd?
    result << j
  end
end

puts result.size