"use strict";
function Main(input) {
  input = input.split("\n");
  let arr = input[1].split(" ");

  let result = 0;
  while (true) {
    for (const i in arr) {
      if (parseInt(arr[i]) % 2 == 0) {
        arr[i] = parseInt(arr[i]) / 2;
      } else {
        console.log(result);
        return;
      }
    }
    result++;
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf-8"));
