





"""simple docstring"""



def 						__lowercase	(  snake_case_    :    int		)  ->int:



    '''simple docstring'''







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







def 						__lowercase	(  snake_case_    :    int		)  ->bool:



    '''simple docstring'''







    __A       :		Dict							=	0
    __A       :		Union[str, Any]							=	number
    while duplicate > 0:
        __A					,			__A       :		Any							=	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.""")
       a_					=     int(input("""Enter number: """).strip())
       print(
           f'''{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number.'''
       )











"""simple docstring"""



def 						__lowercase	(  snake_case_    :    int		)  ->int:



    '''simple docstring'''







    __A       :		str							=	1
    for i in range(1							,num + 1		):
        fact *= i
    return fact







def 						__lowercase	(  snake_case_    :    int		)  ->int:



    '''simple docstring'''







    __A       :		str							=	0
    while number > 0:
        __A       :		Optional[int]							=	number % 10
        sum_of_digits += last_digit
        __A       :		Dict							=	number // 10  # Removing the last_digit from the given number
    return sum_of_digits







def 						__lowercase	(  snake_case_    :    int = 100		)  ->int:



    '''simple docstring'''







    __A       :		Optional[int]							=	factorial(snake_case_		)
    __A       :		Optional[Any]							=	split_and_add(snake_case_		)
    return result


if __name__ == "__main__":
       print(solution(int(input("""Enter the Number: """).strip())))




