n = int(eval(input()))

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

count = 0

only_even = True

while only_even:

  for i in range(n):

    if a[i] % 2 != 0:

      only_even = False

    

  if only_even == False:

    break



  for i in range(n):

    a[i] /= 2   

  count += 1



print(count)
import sys

# import collections

# import math

# import string

# import bisect

# import re

# import itertools

# import statistics



def main():

    n, *numbers = (int(x) for x in sys.stdin.read().split())

    still_can_be_divided = True

    count = 0

    while still_can_be_divided:

        for i in range(n):

            if numbers[i] % 2 == 0: 

                numbers[i] //= 2

            else: 

                still_can_be_divided = False

        if still_can_be_divided:

            count += 1        



    print(count)



if __name__ == "__main__":

    # execute only if run as a script

    main()

n = int(eval(input()))
a = list(map(int, input().split()))
count = 0
only_even = True
while only_even:
    for i in range(n):
        if a[i] % 2 != 0:
            only_even = False
    if only_even == False:
        break
    for i in range(n):
        a[i] /= 2
    count += 1
print(count)

import sys

# import collections
# import math
# import string
# import bisect
# import re
# import itertools
# import statistics
def main():
    n, *numbers = (int(x) for x in sys.stdin.read().split())
    still_can_be_divided = True
    count = 0
    while still_can_be_divided:
        for i in range(n):
            if numbers[i] % 2 == 0:
                numbers[i] //= 2
            else:
                still_can_be_divided = False
        if still_can_be_divided:
            count += 1
    print(count)


if __name__ == "__main__":
    # execute only if run as a script
    main()

-n = int(eval(input())) -a = list(map(int, input().split())) -count = 0 -only_even = True -while only_even: -    for i in range(n): -        if a[i] % 2 != 0: -            only_even = False -    if only_even == False: -        break -    for i in range(n): -        a[i] /= 2 -    count += 1 -print(count) +import sys + +# import collections +# import math +# import string +# import bisect +# import re +# import itertools +# import statistics +def main(): +    n, *numbers = (int(x) for x in sys.stdin.read().split()) +    still_can_be_divided = True +    count = 0 +    while still_can_be_divided: +        for i in range(n): +            if numbers[i] % 2 == 0: +                numbers[i] //= 2 +            else: +                still_can_be_divided = False +        if still_can_be_divided: +            count += 1 +    print(count) + + +if __name__ == "__main__": +    # execute only if run as a script +    main()