N = int(eval(input()))

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



ans = 0

for a in A:

    tmp = a

    while tmp%2==0:

        ans += 1

        tmp //=2

        

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

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



ans = 0

for a in A:

    ans += bin(a)[::-1].index("1")

        

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

N = int(eval(input()))
A = list(map(int, input().split()))
ans = 0
for a in A:
    ans += bin(a)[::-1].index("1")
print(ans)

-    tmp = a -    while tmp % 2 == 0: -        ans += 1 -        tmp //= 2 +    ans += bin(a)[::-1].index("1")