






"""simple docstring"""






def       _A    (__a					,       __a					,       __a							)				-> int:
    """simple docstring"""






    if exponent == 1:
        return base
    if exponent % 2 == 0:
        SCREAMING_SNAKE_CASE_   :						Any							=	_modexpt(__a					,       exponent // 2					,       __a							) % modulo_value
        return (x * x) % modulo_value
    else:
        return (base * _modexpt(__a					,       exponent - 1					,       __a							)) % modulo_value



def       _A    (__a = 17_77					,       __a = 18_55					,       __a = 8							)				-> int:
    """simple docstring"""






    SCREAMING_SNAKE_CASE_   :						List[str]							=	base
    for _ in range(1					,       __a							):
        SCREAMING_SNAKE_CASE_   :						int							=	_modexpt(__a					,       __a					,       10**digits							)

    return result


if __name__ == "__main__":
  print(f'''{solution() = }''')










"""simple docstring"""






from __future__ import annotations

import requests



def       _A    (__a							)				-> dict:
    """simple docstring"""






    SCREAMING_SNAKE_CASE_   :						Any							=	f'https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty'
    return requests.get(__a							).json()



def       _A    (__a = 10							)				-> list[dict]:
    """simple docstring"""






    SCREAMING_SNAKE_CASE_   :						Any							=	'''https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty'''
    SCREAMING_SNAKE_CASE_   :						Dict							=	requests.get(__a							).json()[:max_stories]
    return [get_hackernews_story(__a							) for story_id in story_ids]



def       _A    (__a = 10							)				-> str:
    """simple docstring"""






    SCREAMING_SNAKE_CASE_   :						Tuple							=	hackernews_top_stories(__a							)
    return "\n".join('''* [{title}]({url})'''.format(**__a							) for story in stories							)


if __name__ == "__main__":
  print(hackernews_top_stories_as_markdown())


