function Main(input) {
  var count = Number(input.split('\n')[0]);
  var numbers = input.split('\n')[1].split(' ');
  var result = 0;
  var ary = numbers.slice();
  while(true) {
    var copy = ary.slice();
    ary = [];
    var hasOdd = false;
    for (var i = 0; i < count; i++) {
      if (Number(copy[i]) % 2 !== 0) {
        hasOdd = true;
      }
    }
    if (hasOdd) {
      break;
    }
    for (var i = 0; i < count; i++) {
      ary.push(Number(copy[i]) / 2)
    }
    result++;
  }
  console.log(result);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));