function main(input) {
  var count = input.split("\n");
  var input = count[1].split(" ");
  var map1 = input.map(x => parseInt(x, 10));
  var kazu = 0;
  while(map1.every(y => y%2 == 0)){
  	var map1 = map1.map(z => z/2);
    kazu++;
  }
  console.log(kazu);
}

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