fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val aList = readLine()!!.split(" ").map(String::toInt)
    var count = 0
    var tempList = aList
    while (true) {
        tempList = tempList.filter { it % 2 == 0 }
        if (tempList.isEmpty()) break
        count += tempList.size
        tempList = tempList.map { it / 2 }
    }
    println(count)
}
