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