fun main() {
    val _n = readLine()!!.toInt()
    val a = readLine()!!.split(" ").map(String::toInt)
    val res:Int = a.foldIndexed(0, {index,acc,v -> if(index%2==0 && v%2==1) acc+1 else acc})
    println(res)
}
