


'''simple docstring'''
def      a (     __a = 1000000  )    ->      int:



					'''simple docstring'''






					UpperCamelCase__  :Union[str, Any]				   =					1
					UpperCamelCase__  :Optional[int]				   =					1
					UpperCamelCase__  :Optional[int]				   =					{1: 1}

					for inputa in range(2					,   snake_case_  ):
										UpperCamelCase__  :List[str]				   =					0
										UpperCamelCase__  :List[Any]				   =					inputa

										while True:
															if number in counters:
																				counter += counters[number]
																				break
															if number % 2 == 0:
																				number //= 2
																				counter += 1
															else:
																				UpperCamelCase__  :Tuple				   =					(3 * number) + 1
																				counter += 1

										if inputa not in counters:
															UpperCamelCase__  :Union[str, Any]				   =					counter

										if counter > pre_counter:
															UpperCamelCase__  :Any				   =					inputa
															UpperCamelCase__  :List[Any]				   =					counter
					return largest_number


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






"""simple docstring"""



import requests

a_					=     """https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""







def 						__lowercase	(  snake_case_    :    str		)  ->None:



    '''simple docstring'''







    __A       :		str							=	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>""")




