fun main(args: Array<String>){
    readLine()
    print(readLine()!!.split(' ').map(String::toInt).map{
        var i = 0
        var a = it
        while(a % 2 == 0){
            i++
            a /= 2
        }
        i
    }.min())
}