object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt()
    val as = List.fill(n)(sc.nextInt)
    println(sunuke(as))
  }
  def sunuke(as: List[Int]): Int =
    if (as.forall(_%2 == 0)) 1 + sunuke(as.map(_/2)) else 0
}
