process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = []
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});

reader.on('close', () => {
 var n = Number(lines[0]);
 var a = lines[1].split(' ');
 a = a.map(function(str) { return Number(str)});
 count = 0;
 b = 0;

 loop: while(true){
   for(i=0; i<n; i++){
     if(a[i]%2 == 1){
       break loop;
     }
   }
     count++;
   for(i=0; i<n; i++){
     a[i] = a[i] / 2;
   }
   
 }

console.log(count);
});