object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in);
    sc.nextLine()
    val line = sc.nextLine().split(" ").map(_.toInt);
    println(calc(line, 0));
  }

  def calc(line:Array[Int], count:Int) : String = {
    if (line.count(_.toInt%2==0) == line.size) {
      calc(line.map(_.toInt/2), count+1);
    } else {
      count.toString
    }
  }
}