N = eval(input())

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

ans=0

for x in a:

    if x%2!=0:

        continue

    for j in range(1,50):

        if x%2**j!=0:

            ans+=j-1

            break

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

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

ans = 0

for i in a :

    if i%2 == 0:

        for j in range(i):

            if i%2 == 1:

                break

            i = i/2

            ans += 1

print((int(ans)))
N = eval(input())
a = list(map(int, input().split()))
ans = 0
for x in a:
    if x % 2 != 0:
        continue
    for j in range(1, 50):
        if x % 2**j != 0:
            ans += j - 1
            break
print(ans)

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

-N = eval(input()) +N = int(eval(input())) -for x in a: -    if x % 2 != 0: -        continue -    for j in range(1, 50): -        if x % 2**j != 0: -            ans += j - 1 -            break -print(ans) +for i in a: +    if i % 2 == 0: +        for j in range(i): +            if i % 2 == 1: +                break +            i = i / 2 +            ans += 1 +print((int(ans)))