
object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val a = Array.fill(n)(sc.nextLong())
  println(a.foldLeft(0L)((x, y) => x + div(y, 0)))
  
  def div(num: Long, acc: Long): Long = {
    if (num % 2L == 0L) {
      div(num/2L, acc+1L)
    } else {
      acc
    }
  }
}
