  n=require('fs').readFileSync('/dev/stdin','utf8').split("\n")[1].split(" ")
  i=0
  while(n.every(x => Number(x.slice(-1))%2===0)){
    n=n.map(x=>(Number(x)/2).toString())
    i++
  }
  console.log(i)