fun main(array: Array<String>) {
    val n = readLine()!!.toInt()
    val list = readLine()!!.split(" ").map { it.toInt() }
    var cnt = 0
    var flag = true
    repeat(n) {
        var num = list[it]
        flag = true
        while (flag) {
            if(num % 2 == 0) {
                num /=  2
                cnt++
            }
            else {
                flag = false
            }
        }
    }
    print(cnt)
}