n = int(input())

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

total = 0

for i in range(n):

    x = m[i]

    while True:

        if x % 2 == 1:

            break

        total += 1

        x = x // 2

 

print(total)
def meu_map(l):

    for i in range(len(l)):

        l[i] = int(l[i])





n = int(input())

array = input().split()



meu_map(array)



fatores = 0

for e in array:

    while e != 1:

        if e % 2 == 0:

            e /= 2

            fatores += 1

        else:

            break



print(fatores)
n = int(input())
m = list(map(int, input().split()))
total = 0
for i in range(n):
    x = m[i]
    while True:
        if x % 2 == 1:
            break
        total += 1
        x = x // 2
print(total)

def meu_map(l):
    for i in range(len(l)):
        l[i] = int(l[i])


n = int(input())
array = input().split()
meu_map(array)
fatores = 0
for e in array:
    while e != 1:
        if e % 2 == 0:
            e /= 2
            fatores += 1
        else:
            break
print(fatores)

+def meu_map(l): +    for i in range(len(l)): +        l[i] = int(l[i]) + + -m = list(map(int, input().split())) -total = 0 -for i in range(n): -    x = m[i] -    while True: -        if x % 2 == 1: +array = input().split() +meu_map(array) +fatores = 0 +for e in array: +    while e != 1: +        if e % 2 == 0: +            e /= 2 +            fatores += 1 +        else: -        total += 1 -        x = x // 2 -print(total) +print(fatores)