

"""simple docstring"""






def   lowercase_	(    _lowercase       :		int	):




					'''simple docstring'''






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



def   lowercase_	(    _lowercase       :		int	):




					'''simple docstring'''






					UpperCAmelCase			:   Optional[int]      =				0
					UpperCAmelCase			:   Tuple      =				number
					while duplicate > 0:
										UpperCAmelCase      ,							UpperCAmelCase			:   List[str]      =				divmod(_lowercase							,      10	)
										fact_sum += factorial(_lowercase	)
					return fact_sum == number


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





"""simple docstring"""






import os



def   lowercase_	(    ):




					'''simple docstring'''






					UpperCAmelCase			:   Union[str, Any]      =				os.path.join(os.path.dirname(_lowercase	)							,      "num.txt"	)
					with open(_lowercase	) as file_hand:
										return str(sum(int(_lowercase	) for line in file_hand	)	)[:10]


if __name__ == "__main__":
	print(solution())


