n = int(input())
count = 0
l = input()
l = l.split()
for i in range(n):
    l[i] = int(l[i])


def evenjudge(obj):
    if obj % 2 != 0:
        return 0
    else:
        return 1


flag = True
while flag:
    j = 0
    for i in range(n):
        j += evenjudge(l[i])
    if j == n:
        for i in range(n):
            l[i] = l[i] / 2
        count += 1
    else:
        flag = False
print(count)

dc892a78390a0421c83c04b5cba8da0467aea148
<mask token>

<mask token>


def evenjudge(obj):
    if obj % 2 != 0:
        return 0
    else:
        return 1


<mask token>

<mask token>
for i in range(n):
    l[i] = int(l[i])


def evenjudge(obj):
    if obj % 2 != 0:
        return 0
    else:
        return 1


<mask token>
while flag:
    j = 0
    for i in range(n):
        j += evenjudge(l[i])
    if j == n:
        for i in range(n):
            l[i] = l[i] / 2
        count += 1
    else:
        flag = False
print(count)

n = int(input())
count = 0
l = input()
l = l.split()
for i in range(n):
    l[i] = int(l[i])


def evenjudge(obj):
    if obj % 2 != 0:
        return 0
    else:
        return 1


flag = True
while flag:
    j = 0
    for i in range(n):
        j += evenjudge(l[i])
    if j == n:
        for i in range(n):
            l[i] = l[i] / 2
        count += 1
    else:
        flag = False
print(count)
