n = int(eval(input()))

a = [int(i) for i in input().split()]



a = sorted(list([x for x in a if (x % 2) == 0]), reverse=True)

ans = 0

for i in a:

    while i % 2 == 0:

        i //= 2

        ans += 1

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

a = [int(i) for i in input().split()]



def count(number):

    count = 0

    while True:

        if number % 2 == 0:

            number //= 2

            count += 1

        else:

            break

    return count

  

a_2 = [int(i) for i in a if i % 2 == 0]



ans = 0

for i in a_2:

    ans += count(i)

print(ans)
n = int(eval(input()))
a = [int(i) for i in input().split()]
a = sorted(list([x for x in a if (x % 2) == 0]), reverse=True)
ans = 0
for i in a:
    while i % 2 == 0:
        i //= 2
        ans += 1
print((int(ans)))

n = int(eval(input()))
a = [int(i) for i in input().split()]


def count(number):
    count = 0
    while True:
        if number % 2 == 0:
            number //= 2
            count += 1
        else:
            break
    return count


a_2 = [int(i) for i in a if i % 2 == 0]
ans = 0
for i in a_2:
    ans += count(i)
print(ans)

-a = sorted(list([x for x in a if (x % 2) == 0]), reverse=True) + + +def count(number): +    count = 0 +    while True: +        if number % 2 == 0: +            number //= 2 +            count += 1 +        else: +            break +    return count + + +a_2 = [int(i) for i in a if i % 2 == 0] -for i in a: -    while i % 2 == 0: -        i //= 2 -        ans += 1 -print((int(ans))) +for i in a_2: +    ans += count(i) +print(ans)