function main(s) {
	n = Number(s.split("\n")[0]);
	a = s.split("\n")[1].split(" ");
	z = 0;
	while (true) {
		b = true;
		for (var i = 0; i < a.length; i++) {
			if (a[i] % 2 === 1) {b = false;}
			a[i] = a[i]/2;
		}
		if (!b) {break;}
		z++;
	}
	console.log(z);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));

