function Main(input) {
  	input = input.split("\n");
  	var N = Number(input[0]);
	var tmp = input[1].split(" ");
	var count = 0;
	function loop(tmp){
  		for(var i=0;i<N;i++){
    		if(tmp[i]%2==0){
    			tmp[i]=tmp[i]/2;
    		}else{
      			return count;
    		}
    		if(i==N-1){
      			count++;
      			return loop(tmp);
    		}
  		}
	}
	loop(tmp);
	console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));