fun main(args : Array<String>){
    val n = readLine()!!.toInt()
    var a = readLine()!!.split(' ').map(String::toInt)
    var ans = 0L
    for(i in 0 until n){
        var tmp  = a[i]
        while(tmp % 2 == 0){
            tmp /= 2
            ans++
        }
    }
    println(ans)
}