function Main(input) {
  var In = input.split('\n');
  var num = In[1].split(' ');
  var count = 0;
  
  while(true) {
    var a = true;
    var length = In[0];
    for(var i = 0; i < length; i++){
      if(num[i]%2 == 0){
        num[i] = num[i] / 2;
      } else if(num[i] % 2 != 0){
        a = false;
      }
    }
    
    if(a == false){
      break;
    }
    count += 1;
  }
  console.log(count);
}

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