fun main (args: Array<String>) {
  val N = readLine()!!.toInt()
  val A = readLine()!!.split(" ").map {it.toInt()}
  var result = 0L
  for (a in A) {
    result += hoge(a).toLong()
  }
  println(result)
}

fun hoge (a: Int): Int {
  var base = 2
  for (i in 0..100) {
    if (a % base != 0) return i
    base *= 2
  }
  throw Error()
}