import scala.io.{StdIn => in}
import scala.collection.{mutable => mu}

object Main extends App {
  val n = in.readInt
  val a = in.readLine.split(" ").map(_.toInt)
  def rec(cnt:Int, num:Int):Int = {
    if(num % 2 != 0) cnt
    else rec(cnt+1, num/2)
  }
  val ans = a.map(rec(0,_)).sum
  println(ans)
}