


def 	_lowerCAmelCase  (							lowerCAmelCase_							:Tuple							)->Optional[Any]:
   '''simple docstring'''






   snake_case_         =   5_381
   for x in s:
      snake_case_         =   ((hash_value << 5) + hash_value) + ord(A_							)
   return hash_value & 0Xf_f_f_f_f_f_f_f








from __future__ import annotations



def      _lowerCAmelCase  (							lowerCAmelCase_							:int							)->list[int]:
   '''simple docstring'''






   assert (
       isinstance(lowerCAmelCase_						,  lowerCAmelCase_							) and mask > 0
   ), F'''mask needs to be positive integer, your input {mask}'''
   snake_case_         =   []
   snake_case_         =   mask

   while submask:
      all_submasks.append(lowerCAmelCase_							)
      snake_case_         =   (submask - 1) & mask

   return all_submasks


if __name__ == "__main__":
   import doctest

   doctest.testmod()




