import Foundation

func main() {
  let n = Int(readLine()!)!
  let inputString = readLine()!
  var split: [Int] = inputString.components(separatedBy: " ").map{Int(String($0))!}

  var i = 0
  var res = 0
  for i in 1 ... n {
    var s = split[i-1]
    while(s%2==0) {
      s = s/2
      res += 1
    }
  }
  
  print(res)
}

main()