object AtCoder068b extends App {
  override def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val _ = sc.nextLine()
    val arr = sc.nextLine().split(" ").map(_.toInt)
    var arr1 = arr
    var sum = 0
    while (applicable(arr1)) {
      arr1 = arr1.map(x => x / 2)
      sum += 1
    }
    println(sum)

  }
  def applicable(num: Array[Int]): Boolean = {
    num.forall(x => x % 2 == 0)
  }

}