N = int(eval(input()))

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

ans = 0

for a in A:

    cnt = 0

    for i in range(1,a + 1):

        if a % 2**i == 0:

            cnt += 1

        else:

            break

    ans += cnt

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

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

ans = 0

for a in A:

    while a % 2 == 0:

        a //= 2

        ans += 1

print(ans)
N = int(eval(input()))
A = list(map(int, input().split()))
ans = 0
for a in A:
    cnt = 0
    for i in range(1, a + 1):
        if a % 2**i == 0:
            cnt += 1
        else:
            break
    ans += cnt
print(ans)

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

-    cnt = 0 -    for i in range(1, a + 1): -        if a % 2**i == 0: -            cnt += 1 -        else: -            break -    ans += cnt +    while a % 2 == 0: +        a //= 2 +        ans += 1