var input = require('fs').readFileSync('/dev/stdin', 'utf8').split(/\n/g);
var a = input[1].split(/\s/g);
var i = 0;
while (true){
	if (a.every(function(e){return e % 2 === 0;})){
		a = a.map(function(e){return e / 2;});
		i++;
	} else {
		break;
	}
}
console.log(i);
