'use strict'

function main(s) {

  let nums = s.split('\n')[1].split(' ').map(e => Number(e));

  let canDivide = true;
  let count = 0;

  while(canDivide) {
      for (var i = 0; i < nums.length; i++) {
        if (nums[i] % 2 === 0) {
          nums[i] = nums[i] / 2;
        } else {
          canDivide = false;
        }
      }
      if (canDivide) count++;
  }

  console.log(count);
}

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