object Main {
	def main(args: Array[String]) {
		val input = io.Source.stdin.getLines().mkString("\n")
		println(solve(input).trim)
	}

	def solve(input: String): String = {
		cont(input.split("\n")(1).split(" ").map(_.toInt).toList,0).toString()
	}

	def cont(list: List[Int], count: Int): Int = {
		if(list.forall(_%2==0)) {
			cont(list.map(_/2), count+1)
		}else{
			count
		}
	}
}