import numpy as np

eval(input())

x = np.array(input().split(),dtype=np.int32)



answer = 0

while (x%2==0).all():

  x //= 2

  answer += 1

print(answer)

import numpy as np

N = int(eval(input()))

a = np.array(input().split(),dtype=np.int32)

z = 0



while (a%2==0).all():

  a//=2

  z+=1



print(z)

import numpy as np

eval(input())
x = np.array(input().split(), dtype=np.int32)
answer = 0
while (x % 2 == 0).all():
    x //= 2
    answer += 1
print(answer)

import numpy as np

N = int(eval(input()))
a = np.array(input().split(), dtype=np.int32)
z = 0
while (a % 2 == 0).all():
    a //= 2
    z += 1
print(z)

-eval(input()) -x = np.array(input().split(), dtype=np.int32) -answer = 0 -while (x % 2 == 0).all(): -    x //= 2 -    answer += 1 -print(answer) +N = int(eval(input())) +a = np.array(input().split(), dtype=np.int32) +z = 0 +while (a % 2 == 0).all(): +    a //= 2 +    z += 1 +print(z)