function Main(input) {
  var counter = 0;
  var sum = 0;
  input
    .split(/\n/)[1]
    .split(/\s/)
    .forEach((num) => {
      sum += parseInt(num, 10);
    });

  while (sum % 2 === 0) {
    sum /= 2;
    counter++;
  }

  console.log(counter);
}

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