object Main {
  def main(args: Array[String]) {
    val input = io.Source.stdin.getLines().mkString("\n");
    println(solve(input).trim());

  }

  def solve(input: String): String = {
    Stream.iterate(input.split("\n")(1).split(" ").map(_.toInt))(_.map(_/2)).takeWhile(_.forall(_%2==0)).size.toString
  }
}