


'''simple docstring'''






import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


__UpperCAmelCase					       =							logging.get_logger(__name__)




class 	a__       (							_A						):





							'''simple docstring'''






							def __init__(	self      ,					*lowerCamelCase_      ,					**lowerCamelCase_     ) ->							None:
														warnings.warn(
														    '''The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
														    ''' use DonutImageProcessor instead.'''      ,					UpperCamelCase__      ,					)
														super().__init__(*UpperCamelCase__      ,					**UpperCamelCase__     )



'''simple docstring'''






def       _snake_case     (  A )		->					int:
							return 1 if digit in (0, 1) else (digit * factorial(digit - 1 ))


def       _snake_case     (  A )		->					bool:
							lowerCAmelCase__      =			0
							lowerCAmelCase__      =			number
							while duplicate > 0:
														lowerCAmelCase__     ,      lowerCAmelCase__      =			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					       =							int(input('''Enter number: ''').strip())
		print(
		    f"""{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number."""
		)