n = int(eval(input()))

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

count = 0

for i in a:

    while i % 2 == 0:

        i /= 2

        count += 1

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

a = [int(i) for i in input().split()]



a = sorted(list([x for x in a if (x % 2) == 0]), reverse=True)

ans = 0

for i in a:

    while i % 2 == 0:

        i //= 2

        ans += 1

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

n = int(eval(input()))
a = [int(i) for i in input().split()]
a = sorted(list([x for x in a if (x % 2) == 0]), reverse=True)
ans = 0
for i in a:
    while i % 2 == 0:
        i //= 2
        ans += 1
print((int(ans)))

-a = list(map(int, input().split())) -count = 0 +a = [int(i) for i in input().split()] +a = sorted(list([x for x in a if (x % 2) == 0]), reverse=True) +ans = 0 -        i /= 2 -        count += 1 -print(count) +        i //= 2 +        ans += 1 +print((int(ans)))