n = int(eval(input()))

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

Sum = 0

for i in range(n):

    while a[i] % 2 == 0:

        a[i] /= 2

        Sum += 1

print(Sum)

n = int(eval(input()))

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

cnt = 0

for i in range(n):

    if a[i] % 2 == 0:

        while a[i] % 2 == 0:

            a[i] = a[i] // 2

            cnt += 1

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

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

-Sum = 0 +cnt = 0 -    while a[i] % 2 == 0: -        a[i] /= 2 -        Sum += 1 -print(Sum) +    if a[i] % 2 == 0: +        while a[i] % 2 == 0: +            a[i] = a[i] // 2 +            cnt += 1 +print(cnt)