import java.io.{InputStream, OutputStream, PrintStream}
import java.util.Scanner

import scala.annotation.tailrec

object Main {

  def main(args: Array[String]): Unit = {
    val solver = new Solver(System.in, System.out)
    solver.solve()
  }

  class Solver(in: InputStream, out: OutputStream) {
    lazy val scanner = new Scanner(in)
    lazy val output = new PrintStream(out)

    def solve(): Unit = {
      val _ = scanner.nextLine().toInt
      val ns = scanner.nextLine().split(" ").map(_.toInt)

      val result = ns.map { n =>
        if (n % 2 == 0) {
          f(0, n)
        } else {
          0
        }
      }.sum

      output.println(result)
    }

    @tailrec
    private def f(c: Int, n: Int): Int =
      if (n % 2 == 0) {
        f(c + 1, n / 2)
      } else {
        c
      }


  }

}
