function Main(input) {
  input = input.split("\n");
  a = input[1].split(" ").map(Number);
  var odd = true;
  var ans = 0;
  while(odd){
    if(a.every(a=>a%2==0)){
      ans++;
      a = a.map(item=>item/2);
    }else{
      odd = false;
    }
  }
  console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));