import java.util.Scanner

import scala.annotation.tailrec

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n  = sc.nextInt()
    val a=List.fill(n)(sc.nextInt())
    println(a.map(x=>f(x)).sum)
  }
  
  def f(n:Int):Int={
    if (n%2!=0){
      0
    }else{
      1+f(n/2)
    }
  }
}
