from math import log2

n = int(eval(input()))

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

ans = 0



for _a in a:

    if _a%2 == 0:

        cnt =0

        while _a%2 == 0:

            _a //= 2

            cnt += 1

        ans += cnt



print((int(ans)))
def f(k):

    cnt = 0

    while k%2 == 0:

        k //= 2

        cnt += 1

        # print(k)

        # print("-----")

    return cnt



n = int(eval(input()))

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

ans = 0



for a in A:

    if a%2 == 0:

        ans += f(a)

print(ans)
from math import log2

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

def f(k):
    cnt = 0
    while k % 2 == 0:
        k //= 2
        cnt += 1
        # print(k)
        # print("-----")
    return cnt


n = int(eval(input()))
A = list(map(int, input().split()))
ans = 0
for a in A:
    if a % 2 == 0:
        ans += f(a)
print(ans)

-from math import log2 +def f(k): +    cnt = 0 +    while k % 2 == 0: +        k //= 2 +        cnt += 1 +        # print(k) +    return cnt + -a = list(map(int, input().split())) +A = list(map(int, input().split())) -for _a in a: -    if _a % 2 == 0: -        cnt = 0 -        while _a % 2 == 0: -            _a //= 2 -            cnt += 1 -        ans += cnt -print((int(ans))) +for a in A: +    if a % 2 == 0: +        ans += f(a) +print(ans)