n = int(input())

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



count = 0

for i in range(n):

    curr = a[i]

    while True:

        if curr % 2 == 0:

            curr /= 2

            count += 1

        else:

            break



print(count)
c = eval(input())



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

conte = 0





for i in m:

	

	while(i%2 == 0):

		conte += 1

		i /= 2





print(conte)
n = int(input())
a = list(map(int, input().split()))
count = 0
for i in range(n):
    curr = a[i]
    while True:
        if curr % 2 == 0:
            curr /= 2
            count += 1
        else:
            break
print(count)

c = eval(input())
m = list(map(int, input().split()))
conte = 0
for i in m:
    while i % 2 == 0:
        conte += 1
        i /= 2
print(conte)

-n = int(input()) -a = list(map(int, input().split())) -count = 0 -for i in range(n): -    curr = a[i] -    while True: -        if curr % 2 == 0: -            curr /= 2 -            count += 1 -        else: -            break -print(count) +c = eval(input()) +m = list(map(int, input().split())) +conte = 0 +for i in m: +    while i % 2 == 0: +        conte += 1 +        i /= 2 +print(conte)