





'''simple docstring'''

def    a__							(							lowercase   :	int )						->						int:





     """simple docstring"""

     return 1 if digit in (0, 1) else (digit * factorial(digit - 1 ))







def    a__							(							lowercase   :	int )						->						bool:





     """simple docstring"""

     _UpperCamelCase							       =			0
     _UpperCamelCase							       =			number
     while duplicate > 0:
          _UpperCamelCase       ,							_UpperCamelCase							       =			divmod(lowercase,   10 )
          fact_sum += factorial(lowercase )
     return fact_sum == number


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










'''simple docstring'''

from ..utils import DummyObject, requires_backends
class 							__lowerCAmelCase	(       metaclass=__magic_name__					):






       """simple docstring"""
       _snake_case      :	Dict									=       ['transformers', 'torch', 'note_seq']





       def __init__(				self  :						Tuple			,					*lowerCAmelCase__  :						List[str]			,					**lowerCAmelCase__  :						Optional[int]	)       ->	int:

            '''simple docstring'''




            requires_backends(self			,					['''transformers''', '''torch''', '''note_seq''']	)





       @classmethod
       def snake_case__		(				cls  :						Dict			,					*lowerCAmelCase__  :						Optional[Any]			,					**lowerCAmelCase__  :						Optional[int]	)       ->	Any:

            '''simple docstring'''




            requires_backends(cls			,					['''transformers''', '''torch''', '''note_seq''']	)







       @classmethod
       def snake_case__		(				cls  :						str			,					*lowerCAmelCase__  :						Any			,					**lowerCAmelCase__  :						List[Any]	)       ->	Tuple:

            '''simple docstring'''




            requires_backends(cls			,					['''transformers''', '''torch''', '''note_seq''']	)



