fun main(args : Array<String>) {
    val n = Integer.parseInt(readLine())
    val a = readLine()!!.split(" ").map(String::toInt)

    var count = 0
    for (i in a) {
        var x = i
        while(x % 2 == 0) {
            x = x / 2
            count++
        }
    }

    println(count)
}
