function Main(input){
  	var num = input.split("\n");
  	var elem = num[1].split(" ").map(str => parseInt(str, 10));

  	var count = 0; 	
  	inf_loop:
  	while(1){
      tmp = elem;
      for(var i=0; i<num[0]; i++){
      	if(elem[i]%2==0){
          tmp[i] = tmp[i]/2;
        }else{
          break inf_loop;
        }
      }
      count+=1;
      elem = tmp;         
    }
  	console.log(count);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));