N = int(eval(input()))

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

ans = 0

k = 0

while k < N:

  if A[k] % 2 == 0:

    ans += 1

    A[k] = A[k]//2

  else:

    k += 1

print(ans)

  
N = int(eval(input()))

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

ans = 0

for nums in A:

  while nums%2==0:

    nums = nums//2

    ans += 1

print(ans)
N = int(eval(input()))
A = list(map(int, input().split()))
ans = 0
k = 0
while k < N:
    if A[k] % 2 == 0:
        ans += 1
        A[k] = A[k] // 2
    else:
        k += 1
print(ans)

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

-k = 0 -while k < N: -    if A[k] % 2 == 0: +for nums in A: +    while nums % 2 == 0: +        nums = nums // 2 -        A[k] = A[k] // 2 -    else: -        k += 1