

def    __UpperCAmelCase (	__a      :			int = 1_000_000	)			->     int:

					"""simple docstring"""

					_a	:    int         =		1
					_a	:    Optional[int]         =		1
					_a	:    Dict         =		{1: 1}

					for inputa in range(2		,__a	):
										_a	:    Any         =		0
										_a	:    Optional[Any]         =		inputa

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

										if inputa not in counters:
															_a	:    List[str]         =		counter

										if counter > pre_counter:
															_a	:    Optional[int]         =		inputa
															_a	:    Any         =		counter
					return largest_number


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






def    __UpperCAmelCase (	__a      :			str	)			->     int:

					"""simple docstring"""

					assert column_title.isupper()
					_a	:    Optional[Any]         =		0
					_a	:    List[Any]         =		len(__a	) - 1
					_a	:    List[str]         =		0

					while index >= 0:
										_a	:    Dict         =		(ord(column_title[index]	) - 64) * pow(26		,__a	)
										answer += value
										power += 1
										index -= 1

					return answer


if __name__ == "__main__":
			from doctest import testmod

			testmod()



