






"""simple docstring"""

def _lowerCAmelCase	(  __lowerCamelCase:int   ):

						'''simple docstring'''






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






def _lowerCAmelCase	(  __lowerCamelCase:int   ):

						'''simple docstring'''






						__magic_name__            =     0
						__magic_name__            =     number
						while duplicate > 0:
												__magic_name__      ,    __magic_name__            =     divmod(__lowerCamelCase ,						1_0   )
												fact_sum += factorial(__lowerCamelCase   )
						return fact_sum == number


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











"""simple docstring"""

def _lowerCAmelCase	(  __lowerCamelCase:int = 2_0_0_0_0_0_0   ):

						'''simple docstring'''






						__magic_name__            =     [0 for i in range(n + 1   )]
						__magic_name__            =     1
						__magic_name__            =     1

						for i in range(2 ,						int(n**0.5   ) + 1   ):
												if primality_list[i] == 0:
																		for j in range(i * i ,						n + 1 ,						__lowerCamelCase   ):
																								__magic_name__            =     1
						__magic_name__            =     0
						for i in range(__lowerCamelCase   ):
												if primality_list[i] == 0:
																		sum_of_primes += i
						return sum_of_primes


if __name__ == "__main__":
			print(f'''{solution() = }''')



