object Main {
  def main(args: Array[String]): Unit = {
    val input = io.Source.stdin.getLines().mkString("\n")
    println(solve(input).toString)
  }

  def solve(input:String): Int = {
    val str = input.split("\n")
    val xs = str(1).split(" ").map(_.toInt).toSeq

    def loop(xs:Seq[Int]): Int = {
      val ys = xs.map((x: Int) => x / 2)
      val b : Boolean = xs.forall(_ % 2 == 0)
      if (b) {
        1 + loop(ys)
      } else {
        0
      }
    }
    loop(xs)
  }
}