import sys

input = sys.stdin.readline



N = int(eval(input()))

L = [int(v) for v in input().split()]



ans = 0



for v in L:

    c = 0

    while v % (2 ** (c + 1)) == 0:

        c += 1

    ans += c



print(ans)
import sys

input = sys.stdin.readline



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

L = [int(v) for v in input().split()]



ans = 0

for v in L:

    while v % 2 == 0:

        ans += 1

        v = v // 2

print(ans)
import sys

input = sys.stdin.readline
N = int(eval(input()))
L = [int(v) for v in input().split()]
ans = 0
for v in L:
    c = 0
    while v % (2 ** (c + 1)) == 0:
        c += 1
    ans += c
print(ans)

import sys

input = sys.stdin.readline
(N,) = list(map(int, input().split()))
L = [int(v) for v in input().split()]
ans = 0
for v in L:
    while v % 2 == 0:
        ans += 1
        v = v // 2
print(ans)

-N = int(eval(input())) +(N,) = list(map(int, input().split())) -    c = 0 -    while v % (2 ** (c + 1)) == 0: -        c += 1 -    ans += c +    while v % 2 == 0: +        ans += 1 +        v = v // 2