fun main(args: Array<String>) {
    readLine()
    var list = readLine()!!.split(" ").map(String::toInt)
    var count = 0
    while (true) {
        var existsOdd = false
        for (a in list) {
            if (a % 2 != 0) existsOdd = true
        }
        if (existsOdd) break
        list = list.map { it/2 }
        count++
    }
    println(count)
}