fun main(args: Array<String>) {
    var line = readLine()
    val N = line!!.toInt()
    line = readLine()
    var a = line!!.split(" ").map{ it.toInt() }.map{
        var count = 0
        var aa = it
        while (aa % 2 == 0 && aa > 0) {
            count += 1
            aa /= 2
        }
        count
    }
    println(a.sum())
}