fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val i = readLine()!!.split(" ").map { it.toInt() }
    var c = 0
    for (u in i){
        c += check(u)
    }
    print(c)
}

fun check(value: Int) : Int {
    return if (value % 2 == 1) 0
    else check(value/2) + 1
}
