N=int(eval(input()))

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

A.sort()

for i in range(N):

  A[i]=list(format(A[i],'320b'))

A=list(map(list,list(zip(*A))))

B=['0']*N

ret=0

A.reverse()

for i in A:

  if i==B:

    ret+=1

  else:

    break

print(ret)
def hd2(n):

	ans = 0

	while n % 2 == 0:

		n /= 2

		ans += 1

	return ans

n = int(eval(input()))

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

ans = min(list(map(hd2, a)))

print(ans)
N = int(eval(input()))
A = list(map(int, input().split()))
A.sort()
for i in range(N):
    A[i] = list(format(A[i], "320b"))
A = list(map(list, list(zip(*A))))
B = ["0"] * N
ret = 0
A.reverse()
for i in A:
    if i == B:
        ret += 1
    else:
        break
print(ret)

def hd2(n):
    ans = 0
    while n % 2 == 0:
        n /= 2
        ans += 1
    return ans


n = int(eval(input()))
a = list(map(int, input().split()))
ans = min(list(map(hd2, a)))
print(ans)

-N = int(eval(input())) -A = list(map(int, input().split())) -A.sort() -for i in range(N): -    A[i] = list(format(A[i], "320b")) -A = list(map(list, list(zip(*A)))) -B = ["0"] * N -ret = 0 -A.reverse() -for i in A: -    if i == B: -        ret += 1 -    else: -        break -print(ret) +def hd2(n): +    ans = 0 +    while n % 2 == 0: +        n /= 2 +        ans += 1 +    return ans + + +n = int(eval(input())) +a = list(map(int, input().split())) +ans = min(list(map(hd2, a))) +print(ans)