import kotlin.system.exitProcess

fun main(args: Array<String>) {
    abc081B(args)
}
fun abc081B(args: Array<String>) {
    val N = readLine()!!
    val Ai = readLine()!!.split(" ").map(String::toInt).toMutableList()

    var counter = 0
    loop@ while (true) {
        Ai.forEachIndexed { i, a ->
            run {
                if(a % 2 != 0) {
                    println(counter)
                    exitProcess(0)
                }
                Ai[i] = Ai[i] / 2
            }
        }
        counter++
    }
    println(counter)
}
