






from __future__ import annotations
def       a__						(  A					):
   assert (
       isinstance(lowerCamelCase__		,				lowerCamelCase__					) and mask > 0
   ), F'''mask needs to be positive integer, your input {mask}'''
   lowercase__						:	str         = []
   lowercase__						:	Union[str, Any]         = mask

   while submask:
      all_submasks.append(lowerCamelCase__					)
      lowercase__						:	Optional[int]         = (submask - 1) & mask

   return all_submasks


if __name__ == "__main__":
 import doctest

 doctest.testmod()










def       a__						(  A					):

   if not isinstance(A		,				A					) or number < 0:
      raise ValueError("""Input must be a non-negative integer"""					)

   lowercase__						:	str         = number & ~(number - 1)
   lowercase__						:	Optional[int]         = 0
   while intermediate:
      intermediate >>= 1
      index += 1
   return index - 1


if __name__ == "__main__":
 import doctest

 doctest.testmod(verbose=True)


