function Main(input){
    input = input.split("\n");
    var n = input[0];
    var a = input[1].split(" ");
    var ans = 0;
    var flag = true;
    while(flag){
        for(var i = 0; i < n; ++i){
            if(a[i]%2 == 0){
                a[i] /= 2;
            }else{
                flag = false;
                break;
            }
        }
        if(!flag) break;
        ans++;
    }
    console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));