


"""simple docstring"""






from __future__ import annotations

lowercase  		=			{1: 1}



def 			A__		(					_UpperCAmelCase    :      int	)							->	int:

	'''simple docstring'''


	if n in COLLATZ_SEQUENCE_LENGTHS:
		return COLLATZ_SEQUENCE_LENGTHS[n]
	snake_case__  :						Union[str, Any]		=      n // 2 if n % 2 == 0 else 3 * n + 1
	snake_case__  :						str		=      collatz_sequence_length(_UpperCAmelCase	) + 1
	snake_case__  :						Dict		=      sequence_length
	return sequence_length



def 			A__		(					_UpperCAmelCase    :      int = 1_00_00_00	)							->	int:

	'''simple docstring'''


	snake_case__  :						str		=      max((collatz_sequence_length(_UpperCAmelCase	), i) for i in range(1				,    _UpperCAmelCase	)	)
	return result[1]


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






import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
   import torch







class __snake_case							(		unittest.TestCase  ,						lowerCamelCase_						):




   def       __a		(       self     :							Dict ):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__     				= load_tool("""speech-to-text""" )
     self.tool.setup()




   def       __a		(       self     :							Tuple ):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__     				= self.tool(torch.ones(30_00 ) )
     self.assertEqual(_lowercase			,      """ you""" )




   def       __a		(       self     :							Any ):



     """simple docstring"""






     SCREAMING_SNAKE_CASE__     				= self.tool(audio=torch.ones(30_00 ) )
     self.assertEqual(_lowercase			,      """ you""" )
