import Foundation

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

func main() -> Int {
    var numbers: [Int] = readInts()
    var count = 0
    while true {
        if numbers.filter({ $0 % 2 == 0 }).count == numbers.count {
            numbers = numbers.map { $0 / 2 }
            count += 1
            continue
        } else {
            break
        }
    }
  	return count
}

print(main())
