




"""simple docstring"""




import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info
def 					A_			(		snake_case_     :       Tuple    ):







    '''simple docstring'''
    class 							lowerCamelCase		:







       def __init__(							self    ,      SCREAMING_SNAKE_CASE_ ):
           assert isinstance(SCREAMING_SNAKE_CASE_    ,      (bytes, str) )
           UpperCamelCase				:   Optional[int]          =							content







       def       a_							(							self ):
           return json.loads(self.content )

    def mock_response(*snake_case_     :       Union[str, Any]						,**snake_case_     :       str    ):
        assert args[0] == AUTHENTICATED_USER_ENDPOINT
        assert "Authorization" in kwargs["headers"]
        assert kwargs["headers"]["Authorization"].startswith("""token """    )
        assert "Accept" in kwargs["headers"]
        return FakeResponse(b"""{\"login\":\"test\",\"id\":1}"""    )

    monkeypatch.setattr(snake_case_						,"""get"""						,snake_case_    )
    UpperCamelCase				:   List[str]          =							fetch_github_info("""token"""    )
    assert result["login"] == "test"
    assert result["id"] == 1










"""simple docstring"""




def 					A_			(		snake_case_     :       Tuple						,snake_case_     :       Optional[Any]						,snake_case_     :       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(snake_case_						,n - 1						,snake_case_    ) * a) % b

    UpperCamelCase				:   List[Any]          =							bin_exp_mod(snake_case_						,n / 2						,snake_case_    )
    return (r * r) % b


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

  print(bin_exp_mod(BASE, POWER, MODULO))




