n = int(eval(input()))

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

count = 0

for a in A:

    while a%2 == 0:

        count += 1

        a /= 2

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

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

cnt = 0

for a in A:

    while a%2 == 0:

        cnt += 1

        a /= 2

print(cnt)

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

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

-count = 0 +cnt = 0 -        count += 1 +        cnt += 1 -print(count) +print(cnt)