private fun readLn() = readLine()!!
private fun readInt() = readLn().toInt()
private fun readLong() = readLn().toLong()
private fun readStrings() = readLn().split(" ")
private fun readInts() = readStrings().map(String::toInt)
private fun readLongs() = readStrings().map(String::toLong)

fun main() {
    val n = readInt()
    val a = readInts()
    println(a.filterIndexed { index, i -> index % 2 == 0 && i % 2 == 1 } .size)
}