fun main(args: Array<String>) {
    val numN = readLine()!!.toInt()
    val aList = readLine()!!.split(" ").map(String::toLong).toMutableList()
    val eList = aList.filter { it % 2 == 0L }.toMutableList()

    var result = 0L
    eList.forEach {
        result += divide(it)
    }
    println(result)

}

fun divide(it:Long):Long{
    val mod = it % 2
    return if(mod != 0L){
        0L
    }else{
        1 + divide(it / 2)
    }
}