




def        __UpperCAmelCase						(							lowerCamelCase_ :     int = 1_00_00_00  )       ->  int:







			"""simple docstring"""





			SCREAMING_SNAKE_CASE_   : List[Any]					  =      1
			SCREAMING_SNAKE_CASE_   : str					  =      1
			SCREAMING_SNAKE_CASE_   : Tuple					  =      {1: 1}

			for inputa in range(2  ,							lowerCamelCase_  ):
						SCREAMING_SNAKE_CASE_   : Union[str, Any]					  =      0
						SCREAMING_SNAKE_CASE_   : List[Any]					  =      inputa

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

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

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


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




'''simple docstring'''


import math





def    lowerCAmelCase       (		UpperCamelCase__					: float     ,       UpperCamelCase__					: float							):


	"""simple docstring"""
	if (
	    not isinstance(UpperCamelCase__     ,       (int, float)							)
	    or power_factor < -1
	    or power_factor > 1
	):
		raise ValueError('''power_factor must be a valid float value between -1 and 1.'''							)
	return apparent_power * power_factor





def    lowerCAmelCase       (		UpperCamelCase__					: float     ,       UpperCamelCase__					: float							):


	"""simple docstring"""
	if (
	    not isinstance(UpperCamelCase__     ,       (int, float)							)
	    or power_factor < -1
	    or power_factor > 1
	):
		raise ValueError('''power_factor must be a valid float value between -1 and 1.'''							)
	return apparent_power * math.sqrt(1 - power_factor**2							)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
