
'''simple docstring'''
def        A_     (						__SCREAMING_SNAKE_CASE						:  Dict )				->       List[str]:





  """simple docstring"""

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







def        A_     (						__SCREAMING_SNAKE_CASE						:  List[Any] )				->       Tuple:





  """simple docstring"""

  __A		:     Tuple												=		0
  __A		:     Dict												=		number
  while duplicate > 0:
    __A							,					__A		:     Optional[int]												=		divmod(_lowerCAmelCase			,     10 )
    fact_sum += factorial(_lowerCAmelCase )
  return fact_sum == number


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





'''simple docstring'''
def        A_     (						__SCREAMING_SNAKE_CASE						:  int )				->       int:





  """simple docstring"""

  __A		:     Optional[int]												=		1
  for i in range(1			,     num + 1 ):
    fact *= i
  return fact







def        A_     (						__SCREAMING_SNAKE_CASE						:  int )				->       int:





  """simple docstring"""

  __A		:     List[str]												=		0
  while number > 0:
    __A		:     Union[str, Any]												=		number % 10
    sum_of_digits += last_digit
    __A		:     int												=		number // 10  # Removing the last_digit from the given number
  return sum_of_digits







def        A_     (						__SCREAMING_SNAKE_CASE						:  int = 100 )				->       int:





  """simple docstring"""

  __A		:     Union[str, Any]												=		factorial(__SCREAMING_SNAKE_CASE )
  __A		:     Any												=		split_and_add(__SCREAMING_SNAKE_CASE )
  return result


if __name__ == "__main__":
     print(solution(int(input('Enter the Number: ').strip())))



