object Main extends App {
	
	val N = scala.io.StdIn.readInt
	val A = scala.io.StdIn.readLine.split(" ").map(z => func(z.toLong))

	println(A.min)

	def func(x: Long):Long={
		var temp = x
		var sum = 0L
		while(temp%2L != 1){
			temp = temp / 2
			sum = sum + 1
		}

		sum
	}
}