eval(input())

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



ans = 0

for ax in a:

    while ax % 2 == 0:

        ax /= 2

        ans += 1



print(ans)

eval(input())

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



ans = 0

for ax in a:

    while ax % 2 == 0:

        ax //= 2

        ans += 1



print(ans)

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

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

-        ax /= 2 +        ax //= 2