from string import ascii_uppercase

_lowerCAmelCase       =		{str(ord(c) - 55): c for c in ascii_uppercase}
def 					_snake_case	(  __snake_case  ,     __snake_case						):
					if isinstance(__snake_case  ,     __snake_case						):
										raise TypeError('''int() can\'t convert non-string with explicit base'''						)
					if num < 0:
										raise ValueError('''parameter must be positive int'''						)
					if isinstance(__snake_case  ,     __snake_case						):
										raise TypeError('''\'str\' object cannot be interpreted as an integer'''						)
					if isinstance(__snake_case  ,     __snake_case						):
										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'''						)
					_UpperCamelCase			     =     ''''''
					_UpperCamelCase			     =     0
					_UpperCamelCase			     =     0
					while div != 1:
										_UpperCamelCase     ,    _UpperCamelCase			     =     divmod(__snake_case  ,     __snake_case						)
										if base >= 11 and 9 < mod < 36:
															_UpperCamelCase			     =     ALPHABET_VALUES[str(__snake_case						)]
										else:
															_UpperCamelCase			     =     str(__snake_case						)
										new_value += actual_value
										_UpperCamelCase			     =     num // base
										_UpperCamelCase			     =     div
										if div == 0:
															return str(new_value[::-1]						)
										elif div == 1:
															new_value += str(__snake_case						)
															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),
															)

def 					_snake_case	(  __snake_case = 100						):
					_UpperCamelCase			     =     (n * (n + 1) // 2) ** 2
					_UpperCamelCase			     =     n * (n + 1) * (2 * n + 1) // 6
					return sum_cubes - sum_squares


if __name__ == "__main__":
					print(f'{solution() = }')
