import java.util.Scanner

object Main extends App {

  val sc = new Scanner(System.in)
  val n = sc.nextInt()
  sc.nextLine()
  val a = sc.nextLine().split(" ").map(_.toDouble)


  println(loop(a, 0).toInt.toString)

  def loop(list: Seq[Double], count: Double): Double = {
    list.forall(_ % 2d == 0d) match {
      case true => loop(list.map(_ / 2), count + 1d)
      case false => count
    }
  }

}
