object Main extends App {
  
  val sc = new java.util.Scanner(System.in) 
  val N = sc.nextInt()
  val a = Array.fill(N)(sc.nextLong())
  println(calc(a, 0))
  
  def calc(a: Array[Long], acc: Int): Int = {
    if (a.forall(x => x % 2 == 0)) {
      calc(a.map(x => x / 2), acc+1)
    } else {
      acc
    }
  }
}