import scala.io.StdIn

object Main extends App {
  
  val n = StdIn.readLine().toInt
  val a = StdIn.readLine().split(' ').map(_.toLong)
  
  def loop(ai: Array[Long], cnt: Long): Long = {
    //println(ai.toList)
    if(ai.forall(p => p % 2 == 0)){
      loop(ai.map(p => p / 2), cnt + 1)
    } else {
      cnt
    }
  }
  println(loop(a, 0))
}