# -*- coding: utf-8 -*-

n = int(eval(input()))



def div2(x):

    ret = 0

    while x%2==0:

        x /= 2

        ret += 1

    return ret



ret = 0

for a in input().split(" "):

    a = int(a)

    ret += div2(a)



print(ret)

# -*- coding: utf-8 -*-

n = int(eval(input()))

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

res = 0

for a in al:

    t = 0

    while a%2==0:

        a //= 2

        t += 1

    res += t

print(res)

# -*- coding: utf-8 -*-
n = int(eval(input()))


def div2(x):
    ret = 0
    while x % 2 == 0:
        x /= 2
        ret += 1
    return ret


ret = 0
for a in input().split(" "):
    a = int(a)
    ret += div2(a)
print(ret)

# -*- coding: utf-8 -*-
n = int(eval(input()))
al = list(map(int, input().split()))
res = 0
for a in al:
    t = 0
    while a % 2 == 0:
        a //= 2
        t += 1
    res += t
print(res)

- - -def div2(x): -    ret = 0 -    while x % 2 == 0: -        x /= 2 -        ret += 1 -    return ret - - -ret = 0 -for a in input().split(" "): -    a = int(a) -    ret += div2(a) -print(ret) +al = list(map(int, input().split())) +res = 0 +for a in al: +    t = 0 +    while a % 2 == 0: +        a //= 2 +        t += 1 +    res += t +print(res)