





def 	lowerCamelCase_		(							_UpperCamelCase = 1_000_000					)						->		int:






				"""simple docstring"""


				snake_case_		:       Dict           =    1
				snake_case_		:       Dict           =    1
				snake_case_		:       List[str]           =    {1: 1}

				for inputa in range(2					,							_UpperCamelCase					):
								snake_case_		:       Dict           =    0
								snake_case_		:       List[Any]           =    inputa

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

								if inputa not in counters:
												snake_case_		:       Tuple           =    counter

								if counter > pre_counter:
												snake_case_		:       int           =    inputa
												snake_case_		:       Dict           =    counter
				return largest_number


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


'''simple docstring'''



import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


_lowercase          =						logging.get_logger(__name__)




class     UpperCAmelCase_	(						_SCREAMING_SNAKE_CASE					):






						'''simple docstring'''






						def __init__(   self       ,  *_lowercase       ,  **_lowercase ):

												"""simple docstring"""



												warnings.warn(
												    """The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
												    """ use DonutImageProcessor instead."""       ,  _lowercase       ,  )
												super().__init__(*_lowercase       ,  **_lowercase )
