fun main() {
    val num = readLine()!!.toInt()
    val array = readLine()!!.split(" ").map(String::toInt).toIntArray()
    var count = 0
    while (isEven(array)) {
        for(i in 0 until num) {
            array[i] = array[i]/2
        }
        count ++
    }
    println(count)
}

fun isEven(array: IntArray): Boolean {
    var isEven = true
    array.forEach{
        if(it%2 == 1) isEven = false
    }
    return isEven
}
