N = int(eval(input()))



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



count_A =[]

for i in range(N):

    count = 0

    while A[i]%2 == 0:

        A[i] = A[i]/2

        count += 1

    count_A.append(count)

print((sum(count_A)))
N = int(eval(input()))

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



SUM = 0

for i in A:

    count = 0

    while i%2 == 0:

        i = i/2

        count += 1

    SUM+=count

print(SUM)
N = int(eval(input()))
A = list(map(int, input().split()))
count_A = []
for i in range(N):
    count = 0
    while A[i] % 2 == 0:
        A[i] = A[i] / 2
        count += 1
    count_A.append(count)
print((sum(count_A)))

N = int(eval(input()))
A = list(map(int, input().split()))
SUM = 0
for i in A:
    count = 0
    while i % 2 == 0:
        i = i / 2
        count += 1
    SUM += count
print(SUM)

-count_A = [] -for i in range(N): +SUM = 0 +for i in A: -    while A[i] % 2 == 0: -        A[i] = A[i] / 2 +    while i % 2 == 0: +        i = i / 2 -    count_A.append(count) -print((sum(count_A))) +    SUM += count +print(SUM)