"use strict";

var divArray = function divArray(arr, num) {
  return arr.map(function (elem) {
    return elem / num;
  });
};

var hasDecimal = function hasDecimal(arr) {
  return arr.filter(function (elem) {
    return !Number.isInteger(elem);
  }).length > 0;
};

var culc = function culc(arr, count) {
  var result = divArray(arr, 2);

  if (hasDecimal(result)) {
    console.log(count);
  } else {
    count++;
    culc(result, count);
  }
};

var main = function main(input) {
  var input_arr = input.split('\n');
  var N = parseInt(input_arr[0], 10);
  var A = input_arr[1].split(" ");
  var count = 0;
  culc(A, 0);
};

main(require('fs').readFileSync('/dev/stdin', 'utf8'));