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

N = int(eval(input()))

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

a = 0



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

  A//=2

  a+=1



print(a)
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

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

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