N = int(eval(input()))

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

ans = 0

for a in A:

    while a > 0 and a%2 == 0:

        a //= 2

        ans += 1

print(ans)

N = int(eval(input()))

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

ans = 0



for e in a:

    while e%2 == 0:

        ans += 1

        e //= 2

print(ans)

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

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

-A = list(map(int, input().split())) +a = list(map(int, input().split())) -for a in A: -    while a > 0 and a % 2 == 0: -        a //= 2 +for e in a: +    while e % 2 == 0: +        e //= 2