fun main(args: Array<String>) {
    var n = readInputLine().toInt()
    
    val aList = readInputLine().split(" ").map { it.toLong() }
    
    var ans = 0L
    
    for (a in aList) {
        var tmp = a
        while (tmp and 1L == 0L) {
            ans++
            tmp = tmp shr 1
        }
    }
    
    println(ans)
}
 
fun readInputLine(): String {
    return readLine()!!
}
