N=int(eval(input()))

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

count=0

for a in A:

    while a%2==0:

        a=int(a/2)

        count+=1

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

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

c = 0

for a in A:

    while a % 2 == 0:

        a = a//2

        c += 1

print(c)

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

n = int(eval(input()))
(*A,) = list(map(int, input().split()))
c = 0
for a in A:
    while a % 2 == 0:
        a = a // 2
        c += 1
print(c)

-N = int(eval(input())) -A = list(map(int, input().split())) -count = 0 +n = int(eval(input())) +(*A,) = list(map(int, input().split())) +c = 0 -        a = int(a / 2) -        count += 1 -print(count) +        a = a // 2 +        c += 1 +print(c)