object Main extends App {
	val n = scala.io.StdIn.readInt
	val a = scala.io.StdIn.readLine.split(" ").map(_.toLong)

	var ans = 0

	for(x <- a){
		var tp = x

		while(tp%2 == 0){
			ans += 1
			tp = tp/2
		}
	}

	println(ans)
}