var main = function main(input) {
    var args = input.split('\n')
    var N = +args[0]
    var A = args[1].split(' ')
    var count = 0
    
    while (1) {
        var allEven = A.some(function(x) {
            return +x % 2 !== 0
        })
        if (!allEven) {
            count++
            A = A.map(function (x) {
                return +x / 2
            })
        } else break;
    }
    
    console.log(count)
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf-8'))
