function Main(args){
  input = args.split("\n");
  var N = input[0];
  var numbers = input[1].split(' ');
  
  var count = 0;
  
  while( isDividable(numbers) ){
    numbers = divideArray(numbers);
    count++;
  }
  
  console.log(count);
}

function isDividable(args){
  var numbers = args;

  for(var i=0; i<numbers.length; i++){
    if(numbers[i]%2 != 0){
      return false;
    }
  }
  
  return true;
}

function divideArray(args){
  var numbers = args;

  for(var i=0; i<numbers.length; i++){
    numbers[i] /= 2;
  }
  
  return numbers;
}

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