"use strict";

function main(input){
  const args = input.trim().split('\n');
  let bb = args[1].split(' ').map(_=>parseInt(_,10));
  
  let i=0;
  while(bb.every(_=>_%2==0)){
    bb = bb.map(_=>_/2);
    i++;
  }
  
  console.log(i);
}

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