"""simple docstring"""



def    SCREAMING_SNAKE_CASE       (     snake_case):






     if not isinstance(UpperCamelCase__,      UpperCamelCase__):
          raise ValueError('''multiplicative_persistence() only accepts integral values''')
     if num < 0:
          raise ValueError('''multiplicative_persistence() does not accept negative values''')

     __snake_case				=							0
     __snake_case				=							str(UpperCamelCase__)

     while len(UpperCamelCase__) != 1:
          __snake_case				=							[int(UpperCamelCase__) for i in num_string]

          __snake_case				=							1
          for i in range(0,      len(UpperCamelCase__)):
               total *= numbers[i]

          __snake_case				=							str(UpperCamelCase__)

          steps += 1
     return steps





def    SCREAMING_SNAKE_CASE       (     snake_case):






     if not isinstance(UpperCamelCase__,      UpperCamelCase__):
          raise ValueError('''additive_persistence() only accepts integral values''')
     if num < 0:
          raise ValueError('''additive_persistence() does not accept negative values''')

     __snake_case				=							0
     __snake_case				=							str(UpperCamelCase__)

     while len(UpperCamelCase__) != 1:
          __snake_case				=							[int(UpperCamelCase__) for i in num_string]

          __snake_case				=							0
          for i in range(0,      len(UpperCamelCase__)):
               total += numbers[i]

          __snake_case				=							str(UpperCamelCase__)

          steps += 1
     return steps


if __name__ == "__main__":
       import doctest

       doctest.testmod()
"""simple docstring"""



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





def    SCREAMING_SNAKE_CASE       (     snake_case):
     __snake_case				=							0
     __snake_case				=							number
     while duplicate > 0:
          __snake_case		,	__snake_case				=							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.")
       __lowercase		:		Optional[int]														=							int(input("Enter number: ").strip())
       print(
           F"""{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number."""
       )