let a = Int(readLine()!)!
var b = readLine()!.split(separator: " ")
    .map({Int($0)!})
var count = 1

while true {
    b = b.map{$0/2}
    b = b.filter{$0.isMultiple(of: 2)}

    if b.count != a {
        break
    }
    count += 1
}

print(count)