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

val dic = mutableMapOf<Long, Int>()
fun getDivCount(num:Long):Int {
    if(num % 2 != 0L) {
        return 0
    }
    dic[num]?.let { return it }
    dic[num] = getDivCount(num/2) + 1
    return dic[num]!!
}
