#!/usr/bin/env python3



import re



n = int(eval(input()))



a = eval(input())

a = re.split(" ",a)



count = 0

for i in range(len(a)):

    if(int(a[i]) % 2 == 0):

        while(int(a[i]) > 1):

            a[i] = int(a[i])/2

            count += 1

            if(int(a[i]) % 2 != 0):

                break;

    else:

        pass



print(count)
#!/usr/bin/env python3

#ABC100 C



N = int(eval(input()))

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



ans = 0

for i in range(N):

    if a[i] % 2 == 0:

        while a[i] % 2 == 0:

            a[i] = a[i] / 2

            ans += 1

print(ans) 

#!/usr/bin/env python3
import re

n = int(eval(input()))
a = eval(input())
a = re.split(" ", a)
count = 0
for i in range(len(a)):
    if int(a[i]) % 2 == 0:
        while int(a[i]) > 1:
            a[i] = int(a[i]) / 2
            count += 1
            if int(a[i]) % 2 != 0:
                break
    else:
        pass
print(count)

#!/usr/bin/env python3
# ABC100 C
N = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for i in range(N):
    if a[i] % 2 == 0:
        while a[i] % 2 == 0:
            a[i] = a[i] / 2
            ans += 1
print(ans)

-import re - -n = int(eval(input())) -a = eval(input()) -a = re.split(" ", a) -count = 0 -for i in range(len(a)): -    if int(a[i]) % 2 == 0: -        while int(a[i]) > 1: -            a[i] = int(a[i]) / 2 -            count += 1 -            if int(a[i]) % 2 != 0: -                break -    else: -        pass -print(count) +# ABC100 C +N = int(eval(input())) +a = list(map(int, input().split())) +ans = 0 +for i in range(N): +    if a[i] % 2 == 0: +        while a[i] % 2 == 0: +            a[i] = a[i] / 2 +            ans += 1 +print(ans)