
from string import ascii_uppercase

SCREAMING_SNAKE_CASE__   :			Union[str, Any]												=    {str(ord(c) - 55): c for c in ascii_uppercase}




def  __magic_name__ (   __lowerCAmelCase	:						int		,  __lowerCAmelCase	:						int							)			->   str:
				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(1_000):
															assert int(decimal_to_any(num, base), base) == num, (
															    num,
															    base,
															    decimal_to_any(num, base),
															    int(decimal_to_any(num, base), base),
															)





from abc import ABC, abstractmethod
from argparse import ArgumentParser

class    lowerCAmelCase__     (	__lowercase			):






		@staticmethod
		@abstractmethod
		def  __A       (		SCREAMING_SNAKE_CASE__		:							ArgumentParser  )     ->							str:
						raise NotImplementedError()







		@abstractmethod
		def  __A       (		self		:							Optional[int]  )     ->							Union[str, Any]:
						raise NotImplementedError()



