• + 0 comments
    if __name__ == '__main__':
        n = int(input().strip())
        binary = f"{n:b}"
        pattern = r'1+'
        cons_occ = [len(i) for i in re.findall(pattern, binary)]
        print(max(cons_occ))