import numpy as np



N = int(eval(input()))

A = np.array(input().split(),dtype=np.int32)



def ord(n):

  cnt = 0

  while not n&1:

    n >>= 1

    cnt += 1

  return cnt



np_ord = np.frompyfunc(ord,1,1)

answer = np_ord(A).sum()

print(answer)
import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines



import numpy as np



N = int(readline())

A = np.array(read().split(),np.int32)



answer = 0

for _ in range(32):

    A = A[A%2 == 0]

    answer += len(A)

    A >>= 1



print(answer)
import numpy as np

N = int(eval(input()))
A = np.array(input().split(), dtype=np.int32)


def ord(n):
    cnt = 0
    while not n & 1:
        n >>= 1
        cnt += 1
    return cnt


np_ord = np.frompyfunc(ord, 1, 1)
answer = np_ord(A).sum()
print(answer)

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np

N = int(readline())
A = np.array(read().split(), np.int32)
answer = 0
for _ in range(32):
    A = A[A % 2 == 0]
    answer += len(A)
    A >>= 1
print(answer)

+import sys + +read = sys.stdin.buffer.read +readline = sys.stdin.buffer.readline +readlines = sys.stdin.buffer.readlines -N = int(eval(input())) -A = np.array(input().split(), dtype=np.int32) - - -def ord(n): -    cnt = 0 -    while not n & 1: -        n >>= 1 -        cnt += 1 -    return cnt - - -np_ord = np.frompyfunc(ord, 1, 1) -answer = np_ord(A).sum() +N = int(readline()) +A = np.array(read().split(), np.int32) +answer = 0 +for _ in range(32): +    A = A[A % 2 == 0] +    answer += len(A) +    A >>= 1