




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase__				:      Union[str, Any]	   = {
    "configuration_xlm_roberta_xl": [
        "XLM_ROBERTA_XL_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "XLMRobertaXLConfig",
        "XLMRobertaXLOnnxConfig",
    ],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   lowercase__				:      Optional[Any]	   = [
       "XLM_ROBERTA_XL_PRETRAINED_MODEL_ARCHIVE_LIST",
       "XLMRobertaXLForCausalLM",
       "XLMRobertaXLForMaskedLM",
       "XLMRobertaXLForMultipleChoice",
       "XLMRobertaXLForQuestionAnswering",
       "XLMRobertaXLForSequenceClassification",
       "XLMRobertaXLForTokenClassification",
       "XLMRobertaXLModel",
       "XLMRobertaXLPreTrainedModel",
   ]

if TYPE_CHECKING:
   from .configuration_xlm_roberta_xl import (
       XLM_ROBERTA_XL_PRETRAINED_CONFIG_ARCHIVE_MAP,
       XLMRobertaXLConfig,
       XLMRobertaXLOnnxConfig,
   )

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_xlm_roberta_xl import (
          XLM_ROBERTA_XL_PRETRAINED_MODEL_ARCHIVE_LIST,
          XLMRobertaXLForCausalLM,
          XLMRobertaXLForMaskedLM,
          XLMRobertaXLForMultipleChoice,
          XLMRobertaXLForQuestionAnswering,
          XLMRobertaXLForSequenceClassification,
          XLMRobertaXLForTokenClassification,
          XLMRobertaXLModel,
          XLMRobertaXLPreTrainedModel,
      )

else:
   import sys

   lowercase__				:      Tuple	   = _LazyModule(__name__, globals()["__file__"], _import_structure)







def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase)      ->					int:
     return 1 if digit in (0, 1) else (digit * factorial(digit - 1))

def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase)      ->					bool:
     a     =				0
     a     =				number
     while duplicate > 0:
          a  ,				a     =				divmod(__UpperCamelCase		, 10)
          fact_sum += factorial(__UpperCamelCase)
     return fact_sum == number


if __name__ == "__main__":
   print("Program to check whether a number is a Krisnamurthy Number or not.")
   lowercase__				:      str	   = int(input("Enter number: ").strip())
   print(
       F'{number} is {"" if krishnamurthy(number) else "not "}a Krishnamurthy Number.'
   )

