n = int(eval(input()))

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



cnt = 0

for x in a:

    while x % 2 == 0:

        cnt += 1

        x /= 2

print(cnt)

    
n = int(eval(input()))

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



cnt = 0

for x in a:

    while x % 2 == 0:

        x //= 2

        cnt += 1

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

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

+        x //= 2 -        x /= 2