line = readlines.map(&:chomp)
# line = ["5", "1, 3, 4, 5, 7"]

data_num = line[0].to_i
#data_num = 5

datas_arr = line[1].split(" ").map(&:to_i)
# datas_arr = [1, 3, 4, 5, 7]

odd_count = 0

(1..data_num).each do |num|
  if num % 2 === 1
    if data_arr[num - 1] % 2 === 1
      odd_count += 1
    end
  end
end


puts odd_count