N = int(eval(input()))

A = list(map(int, input().split()))

import math

ans = 0

for i in range(N):

  a = A[i]

  b = int(math.log2(a))+1

  for j in range(b):

    if a % 2 == 0:

      ans += 1

      a = a/2

    else:

      break

      

print(ans)

    

    
N = int(eval(input()))

ans = 0

A = list(map(int, input().split()))

for i in range(N):

  a = A[i]

  while a%2 == 0:

    ans += 1

    a = a//2

print(ans)
N = int(eval(input()))
A = list(map(int, input().split()))
import math

ans = 0
for i in range(N):
    a = A[i]
    b = int(math.log2(a)) + 1
    for j in range(b):
        if a % 2 == 0:
            ans += 1
            a = a / 2
        else:
            break
print(ans)

N = int(eval(input()))
ans = 0
A = list(map(int, input().split()))
for i in range(N):
    a = A[i]
    while a % 2 == 0:
        ans += 1
        a = a // 2
print(ans)

+ans = 0 -import math - -ans = 0 -    b = int(math.log2(a)) + 1 -    for j in range(b): -        if a % 2 == 0: -            ans += 1 -            a = a / 2 -        else: -            break +    while a % 2 == 0: +        ans += 1 +        a = a // 2