


import warnings

from ...utils import logging
from .image_processing_vit import ViTImageProcessor


SCREAMING_SNAKE_CASE		:Tuple											=       logging.get_logger(__name__)


class       __lowerCAmelCase       (	a   ):






  """simple docstring"""





  def __init__(       self    :    Dict      ,			*_lowerCAmelCase    :    Dict      ,			**_lowerCAmelCase    :    int					)				->	None:




     """simple docstring"""
     warnings.warn(
         "The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
         " use ViTImageProcessor instead."      ,			_lowerCAmelCase      ,			)
     super().__init__(*_lowerCAmelCase      ,			**_lowerCAmelCase					)








def      _lowerCAmelCase  (							lowerCAmelCase_							:Dict						,  lowerCAmelCase_							:Optional[int]						,  lowerCAmelCase_							:Tuple							)->Optional[Any]:
   '''simple docstring'''






   assert b != 0, "This cannot accept modulo that is == 0"
   if n == 0:
      return 1

   if n % 2 == 1:
      return (bin_exp_mod(lowerCAmelCase_						,  n - 1						,  lowerCAmelCase_							) * a) % b

   snake_case_         =   bin_exp_mod(lowerCAmelCase_						,  n / 2						,  lowerCAmelCase_							)
   return (r * r) % b


if __name__ == "__main__":
   try:
      SCREAMING_SNAKE_CASE		:str											=       int(input('''Enter Base : ''').strip())
      SCREAMING_SNAKE_CASE		:List[Any]											=       int(input('''Enter Power : ''').strip())
      SCREAMING_SNAKE_CASE		:Dict											=       int(input('''Enter Modulo : ''').strip())
   except ValueError:
      print('''Invalid literal for integer''')

   print(bin_exp_mod(BASE, POWER, MODULO))




