





'''simple docstring'''

def    a__							(							lowercase   :	int )						->						int:





     """simple docstring"""

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







def    a__							(							lowercase   :	int )						->						bool:





     """simple docstring"""

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










"""simple docstring"""





import re
def 					__A  (_SCREAMING_SNAKE_CASE     )   ->list:





  """simple docstring"""


  return [char.split() for char in re.split(r'[^ a-z A-Z 0-9 \s]'	,  str_     )]
def 					__A  (_SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  lowerCAmelCase__     :Optional[Any]											=				split_input(str_     )
  return "".join(
      [''.join([char.capitalize() for char in sub_str]     ) for sub_str in string_split]     )
def 					__A  (_SCREAMING_SNAKE_CASE	,  _SCREAMING_SNAKE_CASE	,  _SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  try:
    lowerCAmelCase__     :Any											=				split_input(_SCREAMING_SNAKE_CASE     )
    if upper:
      lowerCAmelCase__     :str											=				''.join(
          [
              separator.join([char.upper() for char in sub_str]     )
              for sub_str in string_split
          ]     )
    else:
      lowerCAmelCase__     :int											=				''.join(
          [
              separator.join([char.lower() for char in sub_str]     )
              for sub_str in string_split
          ]     )
    return res_str
  except IndexError:
    return "not valid string"
def 					__A  (_SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  return to_simple_case(_SCREAMING_SNAKE_CASE     )
def 					__A  (_SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  try:
    lowerCAmelCase__     :str											=				to_simple_case(_SCREAMING_SNAKE_CASE     )
    return res_str[0].lower() + res_str[1:]
  except IndexError:
    return "not valid string"
def 					__A  (_SCREAMING_SNAKE_CASE	,  _SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  return to_complex_case(_SCREAMING_SNAKE_CASE	,  _SCREAMING_SNAKE_CASE	,  '_'     )
def 					__A  (_SCREAMING_SNAKE_CASE	,  _SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  return to_complex_case(_SCREAMING_SNAKE_CASE	,  _SCREAMING_SNAKE_CASE	,  '-'     )


if __name__ == "__main__":
  __import__("""doctest""").testmod()
