function Main(input) {
  input = input.split('\n')
  let args = input[1].split(' ')

  let ans = 0

  while (true) {
    const isEven = args.every(data => data % 2 == 0)

    if (isEven) {
      args = args.map(data => Number(data) / 2)
      ans++
    } else {
      console.log(ans)
      break
    }
  }

}

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