N=int(eval(input()))

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

ans=0

for i in a:

  while 1:

    if i%2!=0:

      break

    i=i//2

    ans+=1

print(ans)
import math

N=int(eval(input()))

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

ans=0

for i in a:

  ans+=math.log2(i & -i)

print((int(ans)))
N = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for i in a:
    while 1:
        if i % 2 != 0:
            break
        i = i // 2
        ans += 1
print(ans)

import math

N = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for i in a:
    ans += math.log2(i & -i)
print((int(ans)))

+import math + -    while 1: -        if i % 2 != 0: -            break -        i = i // 2 -        ans += 1 -print(ans) +    ans += math.log2(i & -i) +print((int(ans)))