n = int(eval(input()))

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



cnt = 0



for i in range(n):

    while a[i] % 2 == 0:

        cnt += 1

        a[i] /= 2

print(cnt)
n = int(eval(input()))

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

ans = 0

for i in range(len(a)):

    tmp = a[i]

    while tmp % 2 == 0:

        ans += 1

        tmp /= 2

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

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

-cnt = 0 -for i in range(n): -    while a[i] % 2 == 0: -        cnt += 1 -        a[i] /= 2 -print(cnt) +ans = 0 +for i in range(len(a)): +    tmp = a[i] +    while tmp % 2 == 0: +        ans += 1 +        tmp /= 2 +print(ans)