import Foundation

let str = Int(readLine()!)!

var number = readLine()!.split(separator: " ").map{Int($0)!}

// Even or Odd

var count = 0
var count2 = 0

while true {
    count = 0
    for i in 0..<number.count {
        if number[i]%2 == 0{
            count += 1
            number[i] /= 2
        }
    }
    if count != number.count {
        break
    }
count2 += 1
}

print(count2)
   