n = int(eval(input()))

a = [int(i) for i in input().split()]

ans = 0

for i in a:

    while i % 2 == 0:

        i //= 2

        ans += 1

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

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

ans = 0

for i in a:

    while not (i & 1):

        ans += 1

        i //= 2

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

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

-a = [int(i) for i in input().split()] +a = list(map(int, input().split())) -    while i % 2 == 0: +    while not (i & 1): +        ans += 1 -        ans += 1