let n = readLine()!
let an = readLine()!.characters.split(" ").map { Int(String($0))! }
for i in 0...200 {
    let s: [Int?] = an.map { a in
        (a % 2 == 0) ? (a / 2) : nil
    }
    if s.contains(nil) {
        print(i)
        break
    }
}
