def num_divisions(num):

    for i in range(1+num):

        if num % 2**i == 0:

            pass

        else:

            return i - 1

        

        

N = int(eval(input()))

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



cnt = 0

for a in A:

    cnt += num_divisions(a)

print(cnt)
def decompose_by_2(n):

    cnt = 0

    while True:

        if n % 2 == 1:

            return cnt

        n = n / 2

        cnt += 1

        

_ = eval(input())

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

cnt = 0

for a in A:

    cnt += decompose_by_2(a)

    

print(cnt)
def num_divisions(num):
    for i in range(1 + num):
        if num % 2**i == 0:
            pass
        else:
            return i - 1


N = int(eval(input()))
A = list(map(int, input().split()))
cnt = 0
for a in A:
    cnt += num_divisions(a)
print(cnt)

def decompose_by_2(n):
    cnt = 0
    while True:
        if n % 2 == 1:
            return cnt
        n = n / 2
        cnt += 1


_ = eval(input())
A = list(map(int, input().split()))
cnt = 0
for a in A:
    cnt += decompose_by_2(a)
print(cnt)

-def num_divisions(num): -    for i in range(1 + num): -        if num % 2**i == 0: -            pass -        else: -            return i - 1 +def decompose_by_2(n): +    cnt = 0 +    while True: +        if n % 2 == 1: +            return cnt +        n = n / 2 +        cnt += 1 -N = int(eval(input())) +_ = eval(input()) -    cnt += num_divisions(a) +    cnt += decompose_by_2(a)