fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
    val a = readLine()!!.split(" ").map { it.toLong() }
    // can't continue when all the number is odd
    // So, best strategy is for a one manipulation, divide only one item by 2 and multiple other by 3.
    // Hence, the answer is the sum of 'how many times ai is dividable by 2'


    // O(Nlog(max(ai)))
    val answer = a.map {
        timesDividableBy2(it)
    }.sum()
    println(answer)
}

// O(log_(divider)N)
fun timesDividableBy2(num: Long) : Int {
    var tmp = num
    var count = 0

    while (tmp.mod(2) == 0L) {
        tmp = tmp / 2 + tmp % 2
        count++
    }
    return count
}
