N = int(eval(input()))

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

even = [i for i in a if i%2 == 0]

count = 0

for i in even:

    c = 0

    for j in range(100):

        rem = i % 2

        i //= 2

        if rem == 1:

            break

        c += 1

    count += c

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

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

even = [i for i in a if i%2 == 0]

count = 0

for i in even:

    c = 0

    while True:

        rem = i % 2

        i //= 2

        if rem == 1:

            break

        c += 1

    count += c

print(count)
N = int(eval(input()))
a = list(map(int, input().rstrip().split()))
even = [i for i in a if i % 2 == 0]
count = 0
for i in even:
    c = 0
    for j in range(100):
        rem = i % 2
        i //= 2
        if rem == 1:
            break
        c += 1
    count += c
print(count)

N = int(eval(input()))
a = list(map(int, input().rstrip().split()))
even = [i for i in a if i % 2 == 0]
count = 0
for i in even:
    c = 0
    while True:
        rem = i % 2
        i //= 2
        if rem == 1:
            break
        c += 1
    count += c
print(count)

-    for j in range(100): +    while True: