n = int(eval(input()))

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



ans = 0

flag = 1

i = 1

while flag:

  y = 2**i

  m = list([x%y for x in l])

  if 0 in m:

    ans += m.count(0)

    i += 1

  else:

    flag = 0

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

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

ans = 0

for i in range(n):

    a = A[i]

    ans += format(a, 'b')[::-1].find('1')

print(ans)

n = int(eval(input()))
l = list(map(int, input().split()))
ans = 0
flag = 1
i = 1
while flag:
    y = 2**i
    m = list([x % y for x in l])
    if 0 in m:
        ans += m.count(0)
        i += 1
    else:
        flag = 0
print(ans)

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

-l = list(map(int, input().split())) +A = list(map(int, input().split())) -flag = 1 -i = 1 -while flag: -    y = 2**i -    m = list([x % y for x in l]) -    if 0 in m: -        ans += m.count(0) -        i += 1 -    else: -        flag = 0 +for i in range(n): +    a = A[i] +    ans += format(a, "b")[::-1].find("1")