object Main extends App {
  import scala.io.StdIn._

  readLine
  println(
    readLine.trim.split(' ').count(_.toInt % 2 == 0)
  )
  implicit class Scope[T](val value: T) extends AnyVal {
    @inline
    def let[A](func: T ⇒ A): A = func(value)
  }
}
