


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_lowercase       :      Union[str, Any]	=	{
    "configuration_jukebox": [
        "JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "JukeboxConfig",
        "JukeboxPriorConfig",
        "JukeboxVQVAEConfig",
    ],
    "tokenization_jukebox": ["JukeboxTokenizer"],
}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				_lowercase       :      List[str]	=	[
				    "JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST",
				    "JukeboxModel",
				    "JukeboxPreTrainedModel",
				    "JukeboxVQVAE",
				    "JukeboxPrior",
				]

if TYPE_CHECKING:
				from .configuration_jukebox import (
				    JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP,
				    JukeboxConfig,
				    JukeboxPriorConfig,
				    JukeboxVQVAEConfig,
				)
				from .tokenization_jukebox import JukeboxTokenizer

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_jukebox import (
								    JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST,
								    JukeboxModel,
								    JukeboxPreTrainedModel,
								    JukeboxPrior,
								    JukeboxVQVAE,
								)

else:
				import sys

				_lowercase       :      Dict	=	_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



def   _lowerCAmelCase				(   UpperCamelCase__:     int						) ->   bool:





	"""simple docstring"""







	return str(UpperCamelCase__						) == str(UpperCamelCase__						)[::-1]





def   _lowerCAmelCase				(   UpperCamelCase__:     int						) ->   int:





	"""simple docstring"""







	return int(UpperCamelCase__						) + int(str(UpperCamelCase__						)[::-1]						)





def   _lowerCAmelCase				(   UpperCamelCase__:     int = 1_00_00						) ->   int:





	"""simple docstring"""







	A								=				[]
	for num in range(1							,					UpperCamelCase__						):
		A								=				0
		A								=				num
		while iterations < 50:
			A								=				sum_reverse(UpperCamelCase__						)
			iterations += 1
			if is_palindrome(UpperCamelCase__						):
				break
		else:
			lychrel_nums.append(UpperCamelCase__						)
	return len(UpperCamelCase__						)


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



