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