



'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


_A				:    int     						={
    '''configuration_falcon''': ['''FALCON_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''FalconConfig'''],
}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		_A				:    Dict     						=[
		    '''FALCON_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''FalconForCausalLM''',
		    '''FalconModel''',
		    '''FalconPreTrainedModel''',
		    '''FalconForSequenceClassification''',
		    '''FalconForTokenClassification''',
		    '''FalconForQuestionAnswering''',
		]


if TYPE_CHECKING:
		from .configuration_falcon import FALCON_PRETRAINED_CONFIG_ARCHIVE_MAP, FalconConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_falcon import (
				    FALCON_PRETRAINED_MODEL_ARCHIVE_LIST,
				    FalconForCausalLM,
				    FalconForQuestionAnswering,
				    FalconForSequenceClassification,
				    FalconForTokenClassification,
				    FalconModel,
				    FalconPreTrainedModel,
				)


else:
		import sys

		_A				:    Optional[Any]     						=_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)





'''simple docstring'''

def 						__UpperCamelCase				(							_lowercase					) ->			bool:
	return str(_lowercase					) == str(_lowercase					)[::-1]







def 						__UpperCamelCase				(							_lowercase					) ->			int:
	return int(_lowercase					) + int(str(_lowercase					)[::-1]					)







def 						__UpperCamelCase				(							_lowercase = 1_0000					) ->			int:
	_lowercase					:       List[str]       =		[]
	for num in range(1,				_lowercase					):
		_lowercase					:       Tuple       =		0
		_lowercase					:       Tuple       =		num
		while iterations < 50:
			_lowercase					:       Union[str, Any]       =		sum_reverse(_lowercase					)
			iterations += 1
			if is_palindrome(_lowercase					):
				break
		else:
			lychrel_nums.append(_lowercase					)
	return len(_lowercase					)


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