"use strict";
    
const main = arg => {
    const N = parseInt(arg.split("\n")[0]);
    let A = arg.split("\n")[1].split(" ");
    let flg = true;
    let cnt = 0;
    
    while(flg) {
        if(A.filter(n=>n%2==0).length !== N) {
            flg = false;
        } else {
            A = A.map(n=>n / 2);
            cnt++;
        }
    }
    
    console.log(cnt);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));