
from string import ascii_uppercase

_A  =	{str(ord(c) - 55): c for c in ascii_uppercase}






def   lowerCamelCase__							(							__lowerCAmelCase    :    int       ,				__lowerCAmelCase    :    int							):




			"""simple docstring"""


			if isinstance(__lowerCAmelCase       ,				__lowerCAmelCase							):
						raise TypeError("int() can't convert non-string with explicit base"							)
			if num < 0:
						raise ValueError("parameter must be positive int"							)
			if isinstance(__lowerCAmelCase       ,				__lowerCAmelCase							):
						raise TypeError("'str' object cannot be interpreted as an integer"							)
			if isinstance(__lowerCAmelCase       ,				__lowerCAmelCase							):
						raise TypeError("'float' object cannot be interpreted as an integer"							)
			if base in (0, 1):
						raise ValueError("base must be >= 2"							)
			if base > 36:
						raise ValueError("base must be <= 36"							)
			lowerCAmelCase_         =      ""
			lowerCAmelCase_         =      0
			lowerCAmelCase_         =      0
			while div != 1:
						lowerCAmelCase_      ,    lowerCAmelCase_         =      divmod(__lowerCAmelCase       ,				__lowerCAmelCase							)
						if base >= 11 and 9 < mod < 36:
									lowerCAmelCase_         =      ALPHABET_VALUES[str(__lowerCAmelCase							)]
						else:
									lowerCAmelCase_         =      str(__lowerCAmelCase							)
						new_value += actual_value
						lowerCAmelCase_         =      num // base
						lowerCAmelCase_         =      div
						if div == 0:
									return str(new_value[::-1]							)
						elif div == 1:
									new_value += str(__lowerCAmelCase							)
									return str(new_value[::-1]							)

			return new_value[::-1]


if __name__ == "__main__":
			import doctest

			doctest.testmod()

			for base in range(2, 37):
						for num in range(10_00):
									assert int(decimal_to_any(num, base), base) == num, (
									    num,
									    base,
									    decimal_to_any(num, base),
									    int(decimal_to_any(num, base), base),
									)





from math import loga






def   lowerCamelCase__							(							__lowerCAmelCase    :    int							):




			"""simple docstring"""


			if a < 0:
						raise ValueError("Input value must be a positive integer"							)
			elif isinstance(__lowerCAmelCase       ,				__lowerCAmelCase							):
						raise TypeError("Input value must be a 'int' type"							)
			return 0 if (a == 0) else int(loga(a & -a							)							)


if __name__ == "__main__":
			import doctest

			doctest.testmod()



