import math

import numpy as np

n = int(eval(input()))

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

b = []

for i in range(n):

    b.append(format(a[i], 'b')[::-1].find('1'))

    

print((sum(b)))
n = int(eval(input()))

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



ans = 0

for i in a:

    while i%2==0:

        i//=2

        ans+=1

print(ans)
import math
import numpy as np

n = int(eval(input()))
a = list(map(int, input().split()))
b = []
for i in range(n):
    b.append(format(a[i], "b")[::-1].find("1"))
print((sum(b)))

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

-import math -import numpy as np - -b = [] -for i in range(n): -    b.append(format(a[i], "b")[::-1].find("1")) -print((sum(b))) +ans = 0 +for i in a: +    while i % 2 == 0: +        i //= 2 +        ans += 1 +print(ans)