import scala.io.StdIn
object Main extends App {
   def divide(nums: Array[Int], count: Int): Int = {
    if (nums.exists(_ % 2 != 0))
      count
    else
      divide(nums.map(_ / 2), count + 1)
  }

  val N = StdIn.readInt()
  val nums = StdIn.readLine().split(" ").map(_.toInt)

  println(divide(nums, 0))
}

