function main(input) {
  var nums = input.split("\n")[1].split(" ").map(function (n) {
     return parseInt(n, 10);
  });

    var count = 0;
    while (
      nums.every(function (n) {
        return n % 2 === 0;
      })
    ) {
      count++;
      nums = nums.map(function (n) {
        return n / 2;
      });
    }

    console.log(count);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
