


def     __SCREAMING_SNAKE_CASE							(       lowercase_      )		->     int:




						'''simple docstring'''







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




def     __SCREAMING_SNAKE_CASE							(       lowercase_      )		->     bool:




						'''simple docstring'''







						__UpperCAmelCase			:							int	    =	0
						__UpperCAmelCase			:							Optional[Any]	    =	number
						while duplicate > 0:
												__UpperCAmelCase    ,      __UpperCAmelCase			:							Dict	    =	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.""")
				lowerCAmelCase       		=    int(input("""Enter number: """).strip())
				print(
				    F'{number} is {"" if krishnamurthy(number) else "not "}a Krishnamurthy Number.'
				)





def     __SCREAMING_SNAKE_CASE							(       lowercase_      ,       lowercase_      )		->     int:




						'''simple docstring'''







						return 1 if input_a == input_a else 0




def     __SCREAMING_SNAKE_CASE							(       )		->     None:




						'''simple docstring'''







						assert xnor_gate(0      ,       0      ) == 1
						assert xnor_gate(0      ,       1      ) == 0
						assert xnor_gate(1      ,       0      ) == 0
						assert xnor_gate(1      ,       1      ) == 1


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

