






def       snake_case_		(     lowerCAmelCase_       :						int      ):
							return 1 if digit in (0, 1) else (digit * factorial(digit - 1      ))
def       snake_case_		(     lowerCAmelCase_       :						int      ):
							__lowercase      :							Tuple				=     0
							__lowercase      :							Union[str, Any]				=     number
							while duplicate > 0:
														__lowercase			,			__lowercase      :							Union[str, Any]				=     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.''')
	lowerCamelCase : Union[str, Any]						   =       int(input('''Enter number: ''').strip())
	print(
	    f'''{number} is {"" if krishnamurthy(number) else "not "}a Krishnamurthy Number.'''
	)







def       snake_case_		(     lowerCAmelCase_       :						int       ,       lowerCAmelCase_       :						int      ):
							return int((input_a, input_a).count(1      ) != 0      )
def       snake_case_		(     ):
							assert or_gate(0       ,       0      ) == 0
							assert or_gate(0       ,       1      ) == 1
							assert or_gate(1       ,       0      ) == 1
							assert or_gate(1       ,       1      ) == 1


if __name__ == "__main__":
	print(or_gate(0, 1))
	print(or_gate(1, 0))
	print(or_gate(0, 0))
	print(or_gate(1, 1))