import math



n = int(eval(input()))

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

aMax, aNum, aMaxSum = 0, 0, 0



for i in range(n):

    aNum, aCnt = a[i], 0

    while aNum % 2 == 0 and aNum / 2 == aNum // 2:

        aCnt += 1

        aNum /= 2

    aMaxSum += aCnt



print(aMaxSum)

n = int(eval(input()))

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

aMax, aCnt = 0, 0



for i in range(n):

    while a[i] % 2 == 0:

        aCnt += 1

        a[i] /= 2



print(aCnt)

import math

n = int(eval(input()))
a = sorted(list(map(int, input().split())))
aMax, aNum, aMaxSum = 0, 0, 0
for i in range(n):
    aNum, aCnt = a[i], 0
    while aNum % 2 == 0 and aNum / 2 == aNum // 2:
        aCnt += 1
        aNum /= 2
    aMaxSum += aCnt
print(aMaxSum)

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

-import math - -a = sorted(list(map(int, input().split()))) -aMax, aNum, aMaxSum = 0, 0, 0 +a = list(map(int, input().split())) +aMax, aCnt = 0, 0 -    aNum, aCnt = a[i], 0 -    while aNum % 2 == 0 and aNum / 2 == aNum // 2: +    while a[i] % 2 == 0: -        aNum /= 2 -    aMaxSum += aCnt -print(aMaxSum) +        a[i] /= 2 +print(aCnt)