import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    println((1..n).map {
        var a = sc.nextInt()
        var res = 0
        while (a % 2 == 0) {
            a /= 2
            res++
        }
        res
    }.min())
}