const main = function(arg) {
    var input = arg.trim().split("\n");
    var nums = input[1].trim().split(" ");
    var go = true
    var count = 0
    while(go){
        for(var i =0;i< nums.length; i++) {
            num = parseInt(nums[i])
            if(num%2!=0){
                go = false 
            }
            nums[i] = num/2
        }
        if(go) count ++
    }
    console.log(count)
}
main(require('fs').readFileSync('/dev/stdin','utf8'));