var nums = null;

function Main(input) {
    var diviveCount = 0;
    nums = input.split(/\n/)[1].split(/\s/)
        .map(str => {
            return parseInt(str, 10)
        });
    while (halfNum(nums)) {
        diviveCount++;
    }
    console.log(diviveCount);
}
/**
 * 数字の配列
 * @returns すべての数が２で割り切れたかどうか
 */
function halfNum() {
    var resNums = [];
    var complete = nums.every((num, index) => {
        if (num % 2 === 0) {
            resNums.push(nums[index] = num / 2);
            return true;
        } else {
            return false;
        }
    });
    nums = resNums;
    return complete;
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));