fun main(arr:Array<String>) {
    val itemCount = readLine()!!.toInt()
    val ans = readLine()!!.split(" ").map { getDiv2Count(it.toLong()) }.sum()
    println(ans)
}

fun getDiv2Count(num:Long):Long {
    var ans = 0L
    var tmp = num
    while (tmp % 2 == 0L) {
        tmp /= 2
        ans++
    }
    return ans
}