function Main(input) {
  const lines = input.split('\n');
  // const n = parseInt(lines[0]);
  const nums = lines[1].split(' ').map(s => parseInt(s));
  let temp = nums;
  let count = 0;
  while(canExec(temp)) {
    count++;
    temp = temp.map(n => n / 2);
  }

  console.log(count);
}

function canExec(numArray) {
  return numArray.every(n => n % 2 === 0);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));