



def    _snake_case (       __snake_case = 1_0_0_0_0_0_0    )     ->     Dict:






      '''simple docstring'''







      UpperCAmelCase_  :	Tuple				      =		1
      UpperCAmelCase_  :	Any				      =		1
      UpperCAmelCase_  :	Union[str, Any]				      =		{1: 1}

      for inputa in range(2					,  lowerCAmelCase_    ):
            UpperCAmelCase_  :	List[Any]				      =		0
            UpperCAmelCase_  :	Tuple				      =		inputa

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

            if inputa not in counters:
                  UpperCAmelCase_  :	Optional[int]				      =		counter

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


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











import logging

from transformers import PretrainedConfig


__lowerCamelCase         =			logging.getLogger(__name__)


__lowerCamelCase         =			{
    '''bertabs-finetuned-cnndm''': '''https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json''',
}


class   snake_case_ (lowercase__  ):




       """simple docstring"""






       _lowerCamelCase			    =				"""bertabs"""



       def __init__(     self     ,lowercase=30522     ,lowercase=512     ,lowercase=6     ,lowercase=512     ,lowercase=8     ,lowercase=512     ,lowercase=0.2     ,lowercase=6     ,lowercase=768     ,lowercase=8     ,lowercase=2048     ,lowercase=0.2     ,**lowercase     ,):

             """simple docstring"""





             super().__init__(**lowercase)

             UpperCAmelCase_  :	Any				      =		vocab_size
             UpperCAmelCase_  :	int				      =		max_pos

             UpperCAmelCase_  :	List[str]				      =		enc_layers
             UpperCAmelCase_  :	List[str]				      =		enc_hidden_size
             UpperCAmelCase_  :	Any				      =		enc_heads
             UpperCAmelCase_  :	Any				      =		enc_ff_size
             UpperCAmelCase_  :	Optional[int]				      =		enc_dropout

             UpperCAmelCase_  :	List[str]				      =		dec_layers
             UpperCAmelCase_  :	List[Any]				      =		dec_hidden_size
             UpperCAmelCase_  :	List[str]				      =		dec_heads
             UpperCAmelCase_  :	List[Any]				      =		dec_ff_size
             UpperCAmelCase_  :	List[str]				      =		dec_dropout
