fun main(args: Array<String>){
    val N = readLine()!!.toInt()
    var a: Array<Int> = readLine()!!.split(' ').map { it -> it.toInt() }.toTypedArray()

    val e = a.filter { it -> it!! % 2 == 0 }
    var size = e.size
    var ea: Array<Int?> = arrayOfNulls(size)
    for (j in 0 until size){
        ea[j] = e.get(j)
    }

    size = ea.size

    ea.sort()
    var p2c = 0
    for (k in size downTo  1) {
        while (ea[k - 1]!! % 2 == 0) {
            p2c++
            ea[k - 1] = ea[k - 1]!! / 2
        }
    }

    println(p2c)
}