



def      __snake_case	(			_UpperCAmelCase   , _UpperCAmelCase   , _UpperCAmelCase				):
    if n == 0:
        return 1

    elif n % 2 == 1:
        return (binary_exponentiation(_UpperCAmelCase   , n - 1   , _UpperCAmelCase				) * a) % mod

    else:
        __a						       =				binary_exponentiation(_UpperCAmelCase   , n / 2   , _UpperCAmelCase				)
        return (b * b) % mod


# a prime number
__snake_case						:Optional[Any]      		=     701

__snake_case						:str      		=     10_0000_0000
__snake_case						:int      		=     10

# using binary exponentiation function, O(log(p)):
print((a / b) % p == (a * binary_exponentiation(b, p - 2, p)) % p)
print((a / b) % p == (a * b ** (p - 2)) % p)






'''simple docstring'''

import requests

__a: str          =   """https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""
def 			__UpperCamelCase       (   UpperCAmelCase     ):
 # fetching a list of articles in json format
 lowercase__				:    Optional[Any]  =					requests.get(_NEWS_API + bbc_news_api_key     ).json()
 # each article in the list is a dict
 for i, article in enumerate(bbc_news_page['''articles''']		,     1     ):
  print(F"""{i}.) {article['title']}"""     )


if __name__ == "__main__":
  fetch_bbc_news(bbc_news_api_key="""<Your BBC News API key goes here>""")

