n=int(eval(input()))

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

x=0

for i in s:

    while i%2==0:

        i/=2

        x+=1

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

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

ans = 0

for num in alst:

    while num % 2 == 0:

        num //= 2

        ans += 1

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

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

-s = list(map(int, input().split())) -x = 0 -for i in s: -    while i % 2 == 0: -        i /= 2 -        x += 1 -print(x) +alst = list(map(int, input().split())) +ans = 0 +for num in alst: +    while num % 2 == 0: +        num //= 2 +        ans += 1 +print(ans)