function Main(input) {
  "use strict";
	const lines = input.split("\n");
	const n = parseInt(lines[0].split(" "), 10);
	const line2 = lines[1].split(" ");

  let nums = line2.map(s => parseInt(s, 10));

  const is_even = n => n%2 === 0;
  const divide_2 = n => n/2;
  let count = 0;

  while (true) {
    if (nums.every(is_even)) {
      count++;
      nums = nums.map(divide_2);
    } else {
      break;
    }
  }
	console.log('%s',count)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
