function Main(inp) {
    var tmp = inp[1].split(" ");
    var ans = 0;
    while(true) {
        var flg = false;
        for (var i = 0; i<tmp.length; i++) {
            if (parseInt(tmp[i])%2 !== 0) flg = true;
            tmp[i] = tmp[i]/2;
        }
        if (flg) break;
        ans++;
    }
    console.log(ans);
}

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