object Main extends App {
    val n = io.StdIn.readInt
    var as = io.StdIn.readLine.split(" ").map(_.toInt)

    var count = 0
    while (as.forall(_%2==0)) {
        as = as.map(_/2)
        count += 1
    }
    println(count)

}