n, *a = list(map(int, open(0).read().split()))



count = 0

for i in a:

    if i % 2 == 0:

        while i % 2 == 0:

            if i % 2 == 0:

                count += 1

                i //= 2

            else:

                break



print(count)
n, *a = list(map(int, open(0).read().split()))

count = 0

for i in a:

        while i % 2 == 0:

            count += 1

            i //= 2

print(count)
n, *a = list(map(int, open(0).read().split()))
count = 0
for i in a:
    if i % 2 == 0:
        while i % 2 == 0:
            if i % 2 == 0:
                count += 1
                i //= 2
            else:
                break
print(count)

n, *a = list(map(int, open(0).read().split()))
count = 0
for i in a:
    while i % 2 == 0:
        count += 1
        i //= 2
print(count)

-    if i % 2 == 0: -        while i % 2 == 0: -            if i % 2 == 0: -                count += 1 -                i //= 2 -            else: -                break +    while i % 2 == 0: +        count += 1 +        i //= 2