import Foundation

let input_line: String = readLine()!
var num = 0
let a = Int(input_line)!
var b : [Int] = []


for i in 0..<a {
  var input: String = readLine()!
  var c = Int(input)!
  b.append(c)
  var sum = b.filter( { (i % 2 == 1) && (c % 2 == 1) } )
}

print(sum.count)
