fun main(args: Array<String>) {
    readLine()
    var inputs = readLine()!!.split(" ").map(Integer::parseInt).toList()

    var count: Int = 0
    
    while(inputs.filter { it % 2 == 1 }.size == 0) {
        inputs = inputs.map { it / 2}
      	count++
    } 
    
    println(count)
}