"use strict";

const Main = (input) => {
    input = input.split("\n");
    let nums = input[1].split(" ");
  	let count = 0;
  
  	for(let i = 0; i < nums.length; i++){
    	nums[i] = parseInt(nums[i]);
    }
  
	while(true){
    let oddFlag = false;
    for(let i = 0; i < nums.length; i++){
		if(nums[i] % 2 == 1){
        	oddFlag = true;
        }
    }
    
      if(oddFlag){
     	 break;
      }
      
      for(let i = 0; i< nums.length; i++){
      	nums[i] = nums[i] / 2;
      }
    count++;

    }
  
console.log(count);  




}

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