n = int(eval(input()))

A = list(map(int,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 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 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 i % 2 == 0:
        i //= 2
        ans += 1
print(ans)

-        i /= 2 +        i //= 2