


'''simple docstring'''
def    a__			(   lowerCAmelCase__ = 10_00		)       ->      int:
    UpperCAmelCase__		,		UpperCAmelCase__     :						Optional[int]						=							1, 1
    UpperCAmelCase__     :						Dict						=							2
    while True:
        UpperCAmelCase__     :						Optional[int]						=							0
        UpperCAmelCase__     :						Any						=							fa + fa
        UpperCAmelCase__		,		UpperCAmelCase__     :						str						=							fa, f
        index += 1
        for _ in str(lowerCAmelCase__		):
            i += 1
        if i == n:
            break
    return index


if __name__ == "__main__":
  print(solution(int(str(input()).strip())))






from __future__ import annotations

import requests







def SCREAMING_SNAKE_CASE							(			lowercase_		)  ->			dict:



       """simple docstring"""

       A__ 					=       f"""https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty"""
       return requests.get(lowercase_		).json()







def SCREAMING_SNAKE_CASE							(			lowercase_ = 10		)  ->			list[dict]:



       """simple docstring"""

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







def SCREAMING_SNAKE_CASE							(			lowercase_ = 10		)  ->			str:



       """simple docstring"""

       A__ 					=       hackernews_top_stories(lowercase_		)
       return "\n".join('''* [{title}]({url})'''.format(**lowercase_		) for story in stories		)


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


