N = int(eval(input()))



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



cnt = 0



for num in seq:

    while num % 2 == 0:

        cnt += 1

        num /= 2



print(cnt)

n = int(eval(input()))

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

ans = 0

for num in a:

    ans += format(num, 'b')[::-1].find('1')

print(ans)
N = int(eval(input()))
seq = list(map(int, input().split()))
cnt = 0
for num in seq:
    while num % 2 == 0:
        cnt += 1
        num /= 2
print(cnt)

n = int(eval(input()))
a = list(map(int, input().split()))
ans = 0
for num in a:
    ans += format(num, "b")[::-1].find("1")
print(ans)

-N = int(eval(input())) -seq = list(map(int, input().split())) -cnt = 0 -for num in seq: -    while num % 2 == 0: -        cnt += 1 -        num /= 2 -print(cnt) +n = int(eval(input())) +a = list(map(int, input().split())) +ans = 0 +for num in a: +    ans += format(num, "b")[::-1].find("1") +print(ans)