• + 0 comments
    n = int(input().strip())
    bin_str = bin(n).__str__()[2:]
    print(len(max(re.findall(r"(1{1,})", bin_str))))