import scala.io.StdIn._

trait Solver extends App {
  implicit class Pipe[T](x: T) {
    def |>[U](f: T => U) = f(x)
  }

  def even(n: Long): Boolean = n % 2 == 0

  def solve(xs: List[Long], acc: Long): Long = {
    if(xs.forall(even)) solve(xs map {_ / 2}, acc + 1)
    else acc
  }
}

object Main extends Solver {
  val _ = readLine()
  val xs = readLine().split(" ").toList.map(_.toLong)
  solve(xs, 0) |> println
}