n = int(eval(input()))

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

g = 0

for i in a:

    while i%2==0:

        g+=1

        i/=2

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

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

ans = 0

for i in range(n):

    while a[i]%2==0:

        a[i] = a[i]//2

        ans+=1

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

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

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