object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt()
    val ints = List.fill(n)(sc.nextInt())
    val count = solve(ints, 0)
    println(count)
  }

  @tailrec
  def solve(ints: List[Int], actionCount: Int): Int = {
    if (ints.exists(_ % 2 != 0)){
      return actionCount
    }
    val division = ints.map(_ / 2)
    solve(division, actionCount + 1)
  }
}