'use strict'

let Main = (input) => {
  let lines = input.split('\n')
  let v = lines[1].split(' ')
  let finish = true
  let count = 0
  while(finish){
    for(let i=0; i <= v.length-1; i++){
      if(v[i] % 2 == 1){
        finish = false
        break
      }
    }

    v = v.map(value => {
      return value / 2
    })
    
    count++
  }
  //result
  console.log(count)
}

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