'''simple docstring'''

def __UpperCamelCase(   _A					:				int    ):
   '''simple docstring'''
   return 1 if digit in (0, 1) else (digit * factorial(digit - 1    ))







def __UpperCamelCase(   _A					:				int    ):
   '''simple docstring'''
   UpperCAmelCase__							:				Optional[int]   				=  0
   UpperCAmelCase__							:				Union[str, Any]   				=  number
   while duplicate > 0:
      UpperCAmelCase__				,      UpperCAmelCase__							:				Dict   				=  divmod(_A  ,			10    )
      fact_sum += factorial(_A    )
   return fact_sum == number


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





'''simple docstring'''

from __future__ import annotations

from collections import namedtuple







def __UpperCamelCase(   _A					:				float  ,			_A					:				float  ,			_A					:				float    ):
   '''simple docstring'''
   UpperCAmelCase__							:				int   				=  namedtuple('''result'''  ,			'''name value'''    )
   if (voltage, current, power).count(0    ) != 1:
      raise ValueError('''Only one argument must be 0'''    )
   elif power < 0:
      raise ValueError(
          '''Power cannot be negative in any electrical/electronics system'''    )
   elif voltage == 0:
      return result('''voltage'''  ,			power / current    )
   elif current == 0:
      return result('''current'''  ,			power / voltage    )
   elif power == 0:
      return result('''power'''  ,			float(round(abs(voltage * current    )  ,			2    )    )    )
   else:
      raise ValueError('''Exactly one argument must be 0'''    )


if __name__ == "__main__":
  import doctest

  doctest.testmod()




