import java.util.Scanner

//整数a(1~10^9)の2の因数の数を数える
fun num_two(a: Int): Int{
	var a_ = a
	var count = 0

	while(a_%2 == 0){
		count += 1
		a_ /= 2
	}

	return count
}

fun main(args: Array<String>){
	val sc = Scanner(System.`in`)
	
	val n = sc.nextLine()
	val s = sc.nextLine()

	val N = Integer.parseInt(n)
	val arr = s.split(" ")

	var sum = 0

	for(i in 0..N-1){
		var a = Integer.parseInt(arr[i])
		sum += num_two(a)
	}

	println(sum)
}