#全ての要素を奇数にできれば良い

#2で何回割れるか



n=int(eval(input()))

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



k=0

while True:

    f=0

    for i in range(n):

        if a[i]%2==0:

            k+=1

            f=1

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

    if f==0:

        break



print(k)

n=int(eval(input()))

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

ans=0

for i in range(n):

    while a[i]%2==0:

        ans+=1

        a[i]//=2

print(ans)
# 全ての要素を奇数にできれば良い
# 2で何回割れるか
n = int(eval(input()))
a = [int(i) for i in input().split()]
k = 0
while True:
    f = 0
    for i in range(n):
        if a[i] % 2 == 0:
            k += 1
            f = 1
            a[i] = a[i] // 2
    if f == 0:
        break
print(k)

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

-# 全ての要素を奇数にできれば良い -# 2で何回割れるか -a = [int(i) for i in input().split()] -k = 0 -while True: -    f = 0 -    for i in range(n): -        if a[i] % 2 == 0: -            k += 1 -            f = 1 -            a[i] = a[i] // 2 -    if f == 0: -        break -print(k) +a = list(map(int, input().split())) +ans = 0 +for i in range(n): +    while a[i] % 2 == 0: +        ans += 1 +        a[i] //= 2 +print(ans)