def main
  lines = []
  while line = gets
      lines << line.chomp.split(' ').map(&:to_i)
  end
  box_count = lines.shift
  numbers = lines.first
  
  count = 0
  numbers.each.with_index do |number, index|
    next if (index+1).even?
    count += 1 if number.odd?
  end
  return puts count

  
end

main