n = int(eval(input()))

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

count=0

for i in range(n):

    while list[i]%2==0:

        list[i]=list[i]/2

        count+=1

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

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

count=0

for i in range(n):

    while list[i]%2==0:

        list[i]=list[i]//2

        count+=1

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

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

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