




def 			a   (_lowerCAmelCase = 1_0_0_0_0_0_0     ):
							SCREAMING_SNAKE_CASE_   	=    1
							SCREAMING_SNAKE_CASE_   	=    1
							SCREAMING_SNAKE_CASE_   	=    {1: 1}

							for inputa in range(2  ,    _lowerCAmelCase     ):
														SCREAMING_SNAKE_CASE_   	=    0
														SCREAMING_SNAKE_CASE_   	=    inputa

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

														if inputa not in counters:
																					SCREAMING_SNAKE_CASE_   	=    counter

														if counter > pre_counter:
																					SCREAMING_SNAKE_CASE_   	=    inputa
																					SCREAMING_SNAKE_CASE_   	=    counter
							return largest_number


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








import webbrowser
from sys import argv
from urllib.parse import parse_qs, quote

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
			__SCREAMING_SNAKE_CASE 						="""%20""".join(argv[1:]) if len(argv) > 1 else quote(str(input("""Search: """)))

			print("""Googling.....""")

			__SCREAMING_SNAKE_CASE 						=f"""https://www.google.com/search?q={query}&num=100"""

			__SCREAMING_SNAKE_CASE 						=requests.get(
			    url,
			    headers={"""User-Agent""": str(UserAgent().random)},
			)

			try:
						__SCREAMING_SNAKE_CASE 						=(
						    BeautifulSoup(res.text, """html.parser""")
						    .find("""div""", attrs={"""class""": """yuRUbf"""})
						    .find("""a""")
						    .get("""href""")
						)

			except AttributeError:
						__SCREAMING_SNAKE_CASE 						=parse_qs(
						    BeautifulSoup(res.text, """html.parser""")
						    .find("""div""", attrs={"""class""": """kCrYT"""})
						    .find("""a""")
						    .get("""href""")
						)["""url"""][0]

			webbrowser.open(link)


