


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_lowercase       :      str	=	{
    "configuration_megatron_bert": ["MEGATRON_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP", "MegatronBertConfig"],
}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				_lowercase       :      List[Any]	=	[
				    "MEGATRON_BERT_PRETRAINED_MODEL_ARCHIVE_LIST",
				    "MegatronBertForCausalLM",
				    "MegatronBertForMaskedLM",
				    "MegatronBertForMultipleChoice",
				    "MegatronBertForNextSentencePrediction",
				    "MegatronBertForPreTraining",
				    "MegatronBertForQuestionAnswering",
				    "MegatronBertForSequenceClassification",
				    "MegatronBertForTokenClassification",
				    "MegatronBertModel",
				    "MegatronBertPreTrainedModel",
				]

if TYPE_CHECKING:
				from .configuration_megatron_bert import MEGATRON_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, MegatronBertConfig

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_megatron_bert import (
								    MEGATRON_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
								    MegatronBertForCausalLM,
								    MegatronBertForMaskedLM,
								    MegatronBertForMultipleChoice,
								    MegatronBertForNextSentencePrediction,
								    MegatronBertForPreTraining,
								    MegatronBertForQuestionAnswering,
								    MegatronBertForSequenceClassification,
								    MegatronBertForTokenClassification,
								    MegatronBertModel,
								    MegatronBertPreTrainedModel,
								)

else:
				import sys

				_lowercase       :      Union[str, Any]	=	_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() = }''')



