



def      __lowercase(						UpperCAmelCase__			):


      """simple docstring"""



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

def      __lowercase(						UpperCAmelCase__			):


      """simple docstring"""



      lowerCamelCase             =		0
      lowerCamelCase             =		number
      while duplicate > 0:
            lowerCamelCase      ,				lowerCamelCase             =		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.')
     a_    :  int						  =		int(input('Enter number: ').strip())
     print(
         f"""{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number."""
     )




from __future__ import annotations

def      __lowercase(						UpperCAmelCase__			):


      """simple docstring"""



      lowerCamelCase             =		2
      lowerCamelCase             =		[]
      while i * i <= n:
            if n % i:
                  i += 1
            else:
                  n //= i
                  factors.append(UpperCAmelCase__			)
      if n > 1:
            factors.append(UpperCAmelCase__			)
      return factors


if __name__ == "__main__":
     import doctest

     doctest.testmod()