n = int(eval(input()))

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

cnt = 0



for i in range(n):

    while True:

        if a[i]%2 == 0:

            a[i] = a[i]//2

            cnt += 1

        else:

            break

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

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

cnt = 0



for i in a:

    while True:

        if i%2 == 0:

            i = i//2

            cnt += 1

        else:

            break

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

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

-for i in range(n): +for i in a: -        if a[i] % 2 == 0: -            a[i] = a[i] // 2 +        if i % 2 == 0: +            i = i // 2