import Foundation
func readInts() -> [Int] { readLine()!.split(separator: " ").map { Int($0)! } }

_ = readLine()
var ai = readInts()
var ans = 0
while true {
  if ai.count == ai.filter({ $0 % 2 == 0 }).count {
    ans += 1
    ai = ai.map { $0 / 2 }
  } else { break }
}
print(ans)