"use strict";

function main(arg) {
  var a = arg.split("\n")[1].split(" ");
  var i = 0;

  while (a.every(function (e) {
    return e % 2 == 0;
  })) {
    i++;
    a = a.map(function (e) {
      return e / 2;
    });
  }
  console.log(i);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));