





"""simple docstring"""






def 	snake_case_  (				A_ :		int = 10_00						):


       '''simple docstring'''





       _lowerCamelCase						:    Optional[Any]         =			1, 1
       _lowerCamelCase						:    int         =			2
       while True:
              _lowerCamelCase						:    Tuple         =			0
              _lowerCamelCase						:    List[str]         =			fa + fa
              _lowerCamelCase						:    Union[str, Any]         =			fa, f
              index += 1
              for _ in str(A_						):
                     i += 1
              if i == n:
                     break
       return index


if __name__ == "__main__":
   print(solution(int(str(input()).strip())))







"""simple docstring"""






def 	snake_case_  (				A_ :		int						):


       '''simple docstring'''





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






def 	snake_case_  (				A_ :		int						):


       '''simple docstring'''





       _lowerCamelCase						:    str         =			0
       _lowerCamelCase						:    Any         =			number
       while duplicate > 0:
              _lowerCamelCase      ,   _lowerCamelCase						:    Union[str, Any]         =			divmod(A_,    10						)
              fact_sum += factorial(A_						)
       return fact_sum == number


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


