import sys

import numpy as np

input = sys.stdin.readline

N = int(eval(input()))

a = [int(x) for x in input().split()]

ans = 0

for i in a:

    cnt = 0

    while i % 2 == 0:

        cnt += 1

        i //= 2

    ans += cnt

print(ans)
import sys

input = sys.stdin.readline



n = int(eval(input()))

a = [int(x) for x in input().split()]



cnt = 0



def count_even(x):

    global cnt

    while x % 2 == 0:

        cnt += 1

        x //= 2



for i in a:

    count_even(i)



print(cnt)
import sys
import numpy as np

input = sys.stdin.readline
N = int(eval(input()))
a = [int(x) for x in input().split()]
ans = 0
for i in a:
    cnt = 0
    while i % 2 == 0:
        cnt += 1
        i //= 2
    ans += cnt
print(ans)

import sys

input = sys.stdin.readline
n = int(eval(input()))
a = [int(x) for x in input().split()]
cnt = 0


def count_even(x):
    global cnt
    while x % 2 == 0:
        cnt += 1
        x //= 2


for i in a:
    count_even(i)
print(cnt)

-import numpy as np -N = int(eval(input())) +n = int(eval(input())) -ans = 0 +cnt = 0 + + +def count_even(x): +    global cnt +    while x % 2 == 0: +        cnt += 1 +        x //= 2 + + -    cnt = 0 -    while i % 2 == 0: -        cnt += 1 -        i //= 2 -    ans += cnt -print(ans) +    count_even(i) +print(cnt)