





'''simple docstring'''






import warnings

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


__lowerCamelCase						: Optional[Any]		=   logging.get_logger(__name__)







class 		UpperCAmelCase   (				lowercase_):


  """simple docstring"""







  def __init__(				self    :					Tuple							,	*UpperCamelCase__    :					int							,	**UpperCamelCase__    :					List[Any]  )     ->						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 					_a   (__SCREAMING_SNAKE_CASE   ):


  """simple docstring"""

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


def 					_a   (__SCREAMING_SNAKE_CASE   ):


  """simple docstring"""

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






