function main(input) {
  
  var input = input.split(/\n/);
  var def = input[0] * 1;
  var t = input[1].split(' ').map(x => x * 1);
  var count = 0;
  var sw = true;
  
  while(sw) {
  	
    for (var i = 0; i < def; i++){
      
      if (t[i] % 2 === 0) {
        t[i] = t[i] / 2;
      } else {
        sw = false;
      }
    }
    
    if (sw) count ++;
    
  }
  
  
  console.log(count);
  
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));