function main(input){
    args = input.split("\n");
    n = args[0];
    a = args[1].split(" ");
    c = 0;
    while (true){
        for (var i = 0; i < parseInt(n, 10 );i ++ ){
            if (a[i]%2 !==0) {console.log(c);return;}
            else{a[i] = a[i]/2}
        }
        c += 1;
    }
}
main(require('fs').readFileSync('/dev/stdin', {encoding:'utf8'}));