object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val numLength = sc.nextInt
  val numSeq = Seq.fill(numLength)(sc.nextInt).zipWithIndex
  val result2: Seq[Int] = for{
    n <- numSeq
    n1 = if(n._1 % 2 != 0) n._1 else 0
    n2 = if(n._2 % 2 == 0)n._2 else 0
    //res = if(n1 )
  } yield (n1, n2) match {
    case (x:Int,y: Int) if(x > 0 && y >  0) => 1
    case _ => 0
  }
  println(result2.filter(_ > 0).count(_ > 0))  
}
