import functools

N = int(eval(input()))

A = [int(x) for x in input().split()]

P = functools.reduce(lambda a,b: a*b, A)

print((len(bin(P).split('1')[-1])))
N = int(eval(input()))

k = 0

for a in map(int, input().split()):

  while a % 2 == 0:

    k += 1

    a //= 2

print(k)
import functools

N = int(eval(input()))
A = [int(x) for x in input().split()]
P = functools.reduce(lambda a, b: a * b, A)
print((len(bin(P).split("1")[-1])))

N = int(eval(input()))
k = 0
for a in map(int, input().split()):
    while a % 2 == 0:
        k += 1
        a //= 2
print(k)

-import functools - -A = [int(x) for x in input().split()] -P = functools.reduce(lambda a, b: a * b, A) -print((len(bin(P).split("1")[-1]))) +k = 0 +for a in map(int, input().split()): +    while a % 2 == 0: +        k += 1 +        a //= 2 +print(k)