
fun main(args:Array<String>):Unit {
    readLine()
    val nums = readLine()!!.trim().split(' ').sumBy { div2(it.toInt()) }
    println(nums)
}
fun div2(num:Int):Int {
    return when(num % 2){
        0 -> 1 + div2(num / 2)
        else -> 0
    }
}