import scala.io.{StdIn => in}

object Main extends App {
  val n = in.readInt

  def rec(cnt:Int, num:Int):Int = {
    if(num % 2 != 0) cnt
    else rec(cnt+1, num/2)
  }

  val ans = in.readLine.split(" ").map(s => rec(0,s.toInt)).sum
  println(ans)
}