


def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 return 1 if digit in (0, 1) else (digit * factorial(digit - 1						))
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							Optional[Any]		 =						0
 __lowerCamelCase		:							Optional[Any]		 =						number
 while duplicate > 0:
  __lowerCamelCase ,					__lowerCamelCase		:							str		 =						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.')
       lowercase_	   =     int(input('Enter number: ').strip())
       print(
           F"""{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number."""
       )





from __future__ import annotations
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							Optional[Any]		 =						0.00
 __lowerCamelCase		:							Tuple		 =						0
 for resistor in resistors:
  if resistor <= 0:
   __lowerCamelCase		:							Union[str, Any]		 =						f'Resistor at index {index} has a negative or zero value!'
   raise ValueError(SCREAMING_SNAKE_CASE__						)
  first_sum += 1 / float(SCREAMING_SNAKE_CASE__						)
  index += 1
 return 1 / first_sum
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							Union[str, Any]		 =						0.00
 __lowerCamelCase		:							str		 =						0
 for resistor in resistors:
  sum_r += resistor
  if resistor < 0:
   __lowerCamelCase		:							Any		 =						f'Resistor at index {index} has a negative value!'
   raise ValueError(SCREAMING_SNAKE_CASE__						)
  index += 1
 return sum_r


if __name__ == "__main__":
       import doctest

       doctest.testmod()

