"""simple docstring"""



def    SCREAMING_SNAKE_CASE       (     snake_case):

     if not grid or not grid[0]:
          raise TypeError('''The grid does not contain the appropriate information''')

     for cell_n in range(1,      len(grid[0])):
          grid[0][cell_n] += grid[0][cell_n - 1]
     __snake_case				=							grid[0]

     for row_n in range(1,      len(snake_case)):
          __snake_case				=							grid[row_n]
          __snake_case				=							fill_row(snake_case,      snake_case)
          __snake_case				=							grid[row_n]

     return grid[-1][-1]





def    SCREAMING_SNAKE_CASE       (     snake_case,      snake_case):
     current_row[0] += row_above[0]
     for cell_n in range(1,      len(snake_case)):
          current_row[cell_n] += min(current_row[cell_n - 1],      row_above[cell_n])

     return current_row


if __name__ == "__main__":
       import doctest

       doctest.testmod()
"""simple docstring"""



def    SCREAMING_SNAKE_CASE       (     snake_case):
     return 1 if digit in (0, 1) else (digit * factorial(digit - 1))





def    SCREAMING_SNAKE_CASE       (     snake_case):
     __snake_case				=							0
     __snake_case				=							number
     while duplicate > 0:
          __snake_case		,	__snake_case				=							divmod(snake_case,      10)
          fact_sum += factorial(snake_case)
     return fact_sum == number


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