function Main(input) {
    var input = input.split("\n");
    var n = input[0];
    var stringNums = input[1].split(" ");
    var nums = []
    var count = 0
    var answerCount = 0


    for (var i = 0; i < n; i++) {
        nums.push(Number(stringNums[i]))
        // console.log(nums[i]/2/9 % 2);
    }

    for(var j = 0; j < Infinity; j++) {
        count = 0;
        for (var i = 0; i < n; i++) {
            if (nums[i] % 2 === 0) {
                count++;
                nums[i] = nums[i] / 2;
            }
        }
        if (count === Number(n)) {
            answerCount++;
        } else {
            break;
        }
    }
    console.log(answerCount);
    }
  Main(require("fs").readFileSync("/dev/stdin", "utf8"));
  