function main(arg) {
  var input = arg.trim().split("\n");
  var n = parseInt(input[0]);
  var numbers = input[1].split(" ").map((i)=> parseInt(i));

  count = 0;
  canDivide = true;
  while(canDivide){
    var array = [];
    for(var i = 0; i < n; i++){
      if(numbers[i] % 2 !== 0){
        canDivide = false;
        break;
      } else {
        array.push(numbers[i]/2);
      }
    }
    count++;
    numbers = array;
  }
  console.log(count);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));