function Main(input) {

input = input.split('\n');
var args = input[1].split(' ');
var ans = 0;

while (true) {
  var isEven = args.every(function (data) {
    return data % 2 == 0;
  });

  if (isEven) {
    var tmp = [];
    args.map;
    args = args.map(function (data) {
      return Number(data) / 2;
    });
    ans++;
  } else {
    console.log(ans);
    break;
  }
}
}

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