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






def  snake_case  (       snake_case__			:int)						->   bool:
       _A        =  0
       _A        =  number
       while duplicate > 0:
              _A   ,  _A        =  divmod(snake_case__   ,	10)
              fact_sum += factorial(snake_case__)
       return fact_sum == number


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





import math
import sys






def  snake_case  (       snake_case__			:int)						->   int:
       if number != int(snake_case__):
              raise ValueError("""the value of input must be a natural number""")
       if number < 0:
              raise ValueError("""the value of input must not be a negative number""")
       if number == 0:
              return 1
       _A        =  [-1] * (number + 1)
       _A        =  0
       for i in range(1   ,	number + 1):
              _A        =  sys.maxsize
              _A        =  int(math.sqrt(snake_case__))
              for j in range(1   ,	root + 1):
                     _A        =  1 + answers[i - (j**2)]
                     _A        =  min(snake_case__   ,	snake_case__)
              _A        =  answer
       return answers[number]


if __name__ == "__main__":
    import doctest

    doctest.testmod()




