N = int(eval(input()))

A = [int(i) for i in input().split()]

ans = 0

check = [0]*30

for i in range(1, 31):

    check[i-1] = 2**i



for i in A:

    if i % 2 == 0:

        j = 0

        while check[j] <= i:

            if i % check[j] == 0:

                add = check[j]

            else:

                break

                

            j += 1

        ans += j

        

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

a = [int(i) for i in input().split()]

ans = 0



for i in a:

    while i % 2 == 0:

        i //= 2

        ans += 1

print(ans)
N = int(eval(input()))
A = [int(i) for i in input().split()]
ans = 0
check = [0] * 30
for i in range(1, 31):
    check[i - 1] = 2**i
for i in A:
    if i % 2 == 0:
        j = 0
        while check[j] <= i:
            if i % check[j] == 0:
                add = check[j]
            else:
                break
            j += 1
        ans += j
print(ans)

N = int(eval(input()))
a = [int(i) for i in input().split()]
ans = 0
for i in a:
    while i % 2 == 0:
        i //= 2
        ans += 1
print(ans)

-A = [int(i) for i in input().split()] +a = [int(i) for i in input().split()] -check = [0] * 30 -for i in range(1, 31): -    check[i - 1] = 2**i -for i in A: -    if i % 2 == 0: -        j = 0 -        while check[j] <= i: -            if i % check[j] == 0: -                add = check[j] -            else: -                break -            j += 1 -        ans += j +for i in a: +    while i % 2 == 0: +        i //= 2 +        ans += 1