function Main(input) {
	splited = input.split("\n");
  	var numbers = splited[1].split(" ");
	var count = 0;

  	while (numbers.every(number => (number%2) === 0)){
          numbers = numbers.map(n => n/2);
  		  //console.log(numbers);
      	  count++;
			}
    console.log(count);
  	
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));