function main(input) {
	var array = input.split('\n')[1].split(' ').map((n) => parseInt(n, 10));
	var result = 0;
	while(array.every((n) => (n % 2) === 0)) {
		result += 1;
		array = array.map((n) => (n / 2));
	}
	console.log(result)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
