'''simple docstring'''




from __future__ import annotations

import requests






def __lowerCAmelCase					(				UpperCamelCase__							)      ->       dict:
    __lowerCamelCase            =    f"""https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty"""
    return requests.get(UpperCamelCase__							).json()






def __lowerCAmelCase					(				UpperCamelCase__ = 10							)      ->       list[dict]:
    __lowerCamelCase            =    '''https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty'''
    __lowerCamelCase            =    requests.get(UpperCamelCase__							).json()[:max_stories]
    return [get_hackernews_story(UpperCamelCase__							) for story_id in story_ids]






def __lowerCAmelCase					(				UpperCamelCase__ = 10							)      ->       str:
    __lowerCamelCase            =    hackernews_top_stories(UpperCamelCase__							)
    return "\n".join('''* [{title}]({url})'''.format(**UpperCamelCase__							) for story in stories							)


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

'''simple docstring'''




def __lowerCAmelCase					(				)      ->       Optional[Any]:
    __lowerCamelCase            =    0
    for i in range(1							,    10_01							):
        total += i**i
    return str(UpperCamelCase__							)[-10:]


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