def div(k):
    k = int(k)
    i = 0
    while k%2==0:
        k//=2
        i+=1
    return i
n = int(input());print(sum(list(map(div, input().split()))))
a433e76d9eff900083432f13d38271b88ac0d1b2
<mask token>

def div(k):
    k = int(k)
    i = 0
    while k % 2 == 0:
        k //= 2
        i += 1
    return i


<mask token>

def div(k):
    k = int(k)
    i = 0
    while k % 2 == 0:
        k //= 2
        i += 1
    return i


<mask token>
print(sum(list(map(div, input().split()))))

def div(k):
    k = int(k)
    i = 0
    while k % 2 == 0:
        k //= 2
        i += 1
    return i


n = int(input())
print(sum(list(map(div, input().split()))))

def div(k):
    k = int(k)
    i = 0
    while k%2==0:
        k//=2
        i+=1
    return i
n = int(input());print(sum(list(map(div, input().split()))))