import numpy as np
from copy import copy

N = int(input())
A = list(map(int, input().split()))

# 1 <= N  <= 10000  O(N^2)
# 1 <= ai <= 10^9   O(ai)

def divider(n, p):
    # Return the number of p in n
    k = 0
    while n % p == 0:
        n = n / p
        k += 1
    return k

ks = []

for a in A:
    k = divider(a, 2)
    ks.append(k)

print(sum(ks))
