function Main(input) {
  const arr = input.split(' ');
  var numbers = arr[1].split(' ').map(x=>Number(x));
  var count = 0;

  while (numbers.some(x=>x%2===0)) {
    numbers = numbers.map(x=>x/2);
    count += 1;
  }

  console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));