const Main = (input) => {
  var input = input.split('\n');
  var arr = input[1].split(' ');
  var newArr = arr.map(function(x) { return x / 2 });
  var count = 0;
  while (true) {
    if(newArr.every(item => Number.isInteger(item))) {
      count++;
      newArr = newArr.map(function(x) { return x / 2 });
    } else {
      break;
    }
  }
  console.log(count);
};

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