fun main(args: Array<String>) {
    fun divCnt(cnt: Int, nums: List<Int>): Int {
        return if (nums.all { it % 2 == 0 }) {
            divCnt(cnt + 1, nums.map { it / 2 })
        } else {
            cnt
        }
    }

    readLine()
    val nums =
        readLine()!!
            .split(" ")
            .map { it.toInt() }
    print(divCnt(0, nums))
}