a = int(eval(input()))

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

cnt = 0

for i in range(len(b)):

    while True:

        if b[i] % 2 == 0:

            b[i] //= 2

            cnt += 1

        else:

            break

print(cnt)

a = int(eval(input()))

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

c = 0

for i in b:

    while True:

        if i % 2 == 0:

            c += 1

            i //= 2

        else:

            break

print(c)

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

a = int(eval(input()))
b = list(map(int, input().split()))
c = 0
for i in b:
    while True:
        if i % 2 == 0:
            c += 1
            i //= 2
        else:
            break
print(c)

-cnt = 0 -for i in range(len(b)): +c = 0 +for i in b: -        if b[i] % 2 == 0: -            b[i] //= 2 -            cnt += 1 +        if i % 2 == 0: +            c += 1 +            i //= 2 -print(cnt) +print(c)