answer = 0

N = int(eval(input()))

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

for i in range(N) :

    while A[i] % 2 == 0 :

        A[i] = A[i] / 2

        answer += 1

print(answer)



N = int(eval(input()))

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



ans = 0

for i in range(N) :

    flag = 0

    while flag == 0 :

        if (L[i] % 2) == 0 :

            ans += 1

            L[i] = L[i]//2

        else :

            flag = 1

print(ans)

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

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

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