n=int(eval(input()))

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

ans=0

for i in a:

    while True:

        if i%2!=0:

            break

        ans+=1

        i/=2

print(ans)

N = int(eval(input()))

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



ans = 0

for a in A:

    while a % 2 == 0:

        if not a:

            break

        ans += 1

        a //= 2



print(ans)

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

N = int(eval(input()))
A = list(map(int, input().split()))
ans = 0
for a in A:
    while a % 2 == 0:
        if not a:
            break
        ans += 1
        a //= 2
print(ans)

-n = int(eval(input())) -a = list(map(int, input().split())) +N = int(eval(input())) +A = list(map(int, input().split())) -for i in a: -    while True: -        if i % 2 != 0: +for a in A: +    while a % 2 == 0: +        if not a: -        i /= 2 +        a //= 2