import java.util.Scanner
import scala.math._

object Main extends App {

  val sc = new Scanner(System.in)

  val N = sc.nextInt()

  var list = List.fill(N)(sc.nextInt())
  var cnt=0

  while(list.forall(_%2==0)){
    cnt+=1
    list = list.map(_ / 2)
  }
  println(cnt)

}

