function main(input) {
  let nums = input.split('\n')[1].split(' ').map(num => parseInt(num, 10));
  let count = 0;
  while (nums.every((num) => num % 2 === 0)) {
    nums = nums.map(num => num/2);
    count++;
  }
  console.log(count);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
