import io.StdIn._

object Main extends App {
  val n = readInt()
  var as = readLine().split(' ').map(_.toInt)

  var sum = 0
  while (as.exists(_%2==0)) {
    sum += as.count(_%2==0)
    as = as.map(a => if (a%2==1) a else a/2)
  }
  
  println(sum)
}