import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    sc.nextLine()
    val numberSequence = sc.nextLine.split(" ").map(_.toInt)

    @annotation.tailrec
    def go(nums: Array[Int], acc: Int): Int={
      val evenNumbers = nums.filter(_ % 2 == 0)
      if (evenNumbers.isEmpty) acc
      else go(evenNumbers.head / 2 +: evenNumbers.slice(1, evenNumbers.length), acc + 1)
    }
    println(go(numberSequence, 0))

  }
}
