N = int(eval(input()))

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

k = 0

for i in range(N):

  while (A[i] % 2 == 0):

    A[i] = A[i]//2

    k += 1

  else:

    i += 1

print(k)
N = int(eval(input()))

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

cnt = 0

for i in range(N):

  k = L[i]

  while k%2 == 0:

    cnt += 1

    k = k//2

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

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

-A = list(map(int, input().split())) -k = 0 +L = list(map(int, input().split())) +cnt = 0 -    while A[i] % 2 == 0: -        A[i] = A[i] // 2 -        k += 1 -    else: -        i += 1 -print(k) +    k = L[i] +    while k % 2 == 0: +        cnt += 1 +        k = k // 2 +print(cnt)