import scala.io.StdIn.{readLine, readInt}

object Main extends App {
  val n = readInt
  val sq = readLine.split(" ").map(_.toInt).toSeq

  @scala.annotation.tailrec
  def shiftOnly(sq: Seq[Int], n: Int): Int = {
    if (sq.count(_ % 2 == 1) == 0) {
      shiftOnly(sq.map(_ / 2), n + 1)
    } else n
  }

  val ans = shiftOnly(sq, 0)
  println(ans)
}