fun main(args: Array<String>) = yorukatsu21b()

fun yorukatsu21b() {
    val n = readLine()!!.toInt()
    val aList = readLine()!!.split(' ').map { it.toLong() }

    val answer = aList.map {
        var curr = it
        var count = 0
        while (curr % 2 == 0L && curr > 0) {
            curr /= 2
            count++
        }
        count.toLong()
    }.sum()

    println(answer)
}
