"use-strict";
// import bigInt from 'big-integer'

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

  console.log(count);
};

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