
'''simple docstring'''


def 				__magic_name__(					UpperCAmelCase__   :					int       ,							UpperCAmelCase__   :					int       ,							UpperCAmelCase__   :					int  ):

      if power < 0:
            return -1
      base %= mod
      UpperCamelCase_    :  Tuple				    =    1

      while power > 0:
            if power & 1:
                  UpperCamelCase_    :  int				    =    (result * base) % mod
            UpperCamelCase_    :  Union[str, Any]				    =    power >> 1
            UpperCamelCase_    :  Optional[int]				    =    (base * base) % mod

      return result
def 				__magic_name__(					):
      print(modular_exponential(3       ,							200       ,							13  )  )


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 main()






'''simple docstring'''


import warnings

from .generation import GenerationMixin




class 						__snake_case (						_a  ):
		# warning at import time
		warnings.warn(
		    "Importing `GenerationMixin` from `src/transformers/generation_utils.py` is deprecated and will "
		    "be removed in Transformers v5. Import as `from transformers import GenerationMixin` instead."				, _a				, )




