n = int(eval(input()))

A = [int(i) for i in input().split()]



count = 0

for i in range(n):

    while A[i] % 2 == 0:

        count += 1

        A[i] /= 2

        

print(count)
n = int(eval(input()))

A = [int(i) for i in input().split()]

count = 0

for i in range(n):

    while A[i] % 2 == 0:

        A[i] //= 2

        count += 1

        

print(count)
n = int(eval(input()))
A = [int(i) for i in input().split()]
count = 0
for i in range(n):
    while A[i] % 2 == 0:
        count += 1
        A[i] /= 2
print(count)

n = int(eval(input()))
A = [int(i) for i in input().split()]
count = 0
for i in range(n):
    while A[i] % 2 == 0:
        A[i] //= 2
        count += 1
print(count)

+        A[i] //= 2 -        A[i] /= 2