



from __future__ import annotations

__UpperCAmelCase						  =     {1: 1}





def 						__lowerCamelCase       (      __magic_name__	:  int						):
							if n in COLLATZ_SEQUENCE_LENGTHS:
														return COLLATZ_SEQUENCE_LENGTHS[n]
							a__:       Tuple											=n // 2 if n % 2 == 0 else 3 * n + 1
							a__:       List[Any]											=collatz_sequence_length(__magic_name__						) + 1
							a__:       Any											=sequence_length
							return sequence_length





def 						__lowerCamelCase       (      __magic_name__	:  int = 1_000_000						):
							a__:       Tuple											=max((collatz_sequence_length(__magic_name__						), i) for i in range(1     , __magic_name__						)						)
							return result[1]


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










from ...utils import is_transformers_available
from .pipeline_latent_diffusion_superresolution import LDMSuperResolutionPipeline


if is_transformers_available():
		from .pipeline_latent_diffusion import LDMBertModel, LDMTextToImagePipeline





