fun readInts() = readLine()!!.split(' ').map(String::toInt)

fun main(args: Array<String>) {
    readLine()
    var x = 0
    readInts().forEach {
        var y = it
        while (y and 1 == 0) {
            x++
            y = y shr 1
        }
    }
    println(x)
}
