'use strict'
let input = require("fs").readFileSync("/dev/stdin", "utf8");
// 必要な変数に定義する
let Nums = input.split('\n');
let nums = Nums[1].split(' ');
let ans = 0;
let isAllEven = nums.every(x => x%2 == 0);

while(isAllEven){
  nums= nums.map( x => x/2);
  isAllEven = nums.every(x => x%2 == 0);
  ans++;
}

console.log(ans);