object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    val as = List.fill(n)(sc.nextInt)

    println(as.filter(_ % 2 == 0).map(divsBy2).sum)
  }
  def divsBy2(i: Int): Int = {
    if(i == 0 || i % 2 != 0) 0
    else 1 + divsBy2(i / 2)
  }
}
