N = int(eval(input()))

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

ans = 0

for i in range(N):

    while a[i] % 2 == 0:

        a[i] /= 2

        ans += 1

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

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

ans = 0

for i in range(N):

    while a[i] % 2 == 0:

        a[i] //= 2

        ans += 1

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

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

-        a[i] /= 2 +        a[i] //= 2