




'''simple docstring'''
def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_     )		->		int:
			return 1 if digit in (0, 1) else (digit * factorial(digit - 1     ))





def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_     )		->		bool:
			A_									= 0
			A_									= number
			while duplicate > 0:
						A_		, A_									= divmod(SCREAMING_SNAKE_CASE_       ,10     )
						fact_sum += factorial(SCREAMING_SNAKE_CASE_     )
			return fact_sum == number


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










'''simple docstring'''
def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_       ,SCREAMING_SNAKE_CASE_     )		->		tuple[float, float]:

			# Check if the input is valid
			if not len(SCREAMING_SNAKE_CASE_     ) == len(SCREAMING_SNAKE_CASE_     ) == 3:
						raise ValueError('Please enter a valid equation.'     )
			if equationa[0] == equationa[1] == equationa[0] == equationa[1] == 0:
						raise ValueError('Both a & b of two equations can\'t be zero.'     )

			# Extract the coefficients
			A_		, A_		, A_									= equationa
			A_		, A_		, A_									= equationa

			# Calculate the determinants of the matrices
			A_									= aa * ba - aa * ba
			A_									= ca * ba - ca * ba
			A_									= aa * ca - aa * ca

			# Check if the system of linear equations has a solution (using Cramer's rule)
			if determinant == 0:
						if determinant_x == determinant_y == 0:
									raise ValueError('Infinite solutions. (Consistent system)'     )
						else:
									raise ValueError('No solution. (Inconsistent system)'     )
			else:
						if determinant_x == determinant_y == 0:
									# Trivial solution (Inconsistent system)
									return (0.0, 0.0)
						else:
									A_									= determinant_x / determinant
									A_									= determinant_y / determinant
									# Non-Trivial Solution (Consistent system)
									return (x, y)




