N = int(eval(input()))

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

ans = 0

for i in a:

    while (1):

        if i % 2 == 1:

            break

        i /= 2

        ans += 1

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

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

ans = 0

for x in a:

    while(True):

        if x & 1:

            break

        x >>= 1

        ans += 1

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

N = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for x in a:
    while True:
        if x & 1:
            break
        x >>= 1
        ans += 1
print(ans)

-for i in a: -    while 1: -        if i % 2 == 1: +for x in a: +    while True: +        if x & 1: -        i /= 2 +        x >>= 1