import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = println(solve(new Scanner(System.in)))

  def solve(in: String): String = solve(new Scanner(in))

  def solve(sc: Scanner): String = {
    val N = sc.nextInt
    val a = Array.fill(N)(sc.nextInt)

    var n = 0
    a.foreach { a =>
      var aa = a
      while (aa % 2 == 0) {
        aa /= 2
        n += 1
      }
    }
    n.toString
  }
}



