import scala.io.StdIn

object Main extends App {

  val n = StdIn.readLine().toInt
  val a = StdIn.readLine().split(" ").map(_.toInt)
  
  val r = a.foldLeft(0){ (acc, x) =>
    def loop(xm: Int, cnt: Int): Int = {
      if(xm % 2 != 0 || xm / 2 == 0) cnt
      else loop(xm/2, cnt+1)
    }
    acc + loop(x, 0)
  }
  
  println(r)
  
}
