



from __future__ import annotations

a__						=		{1: 1}



def  lowercase    (				SCREAMING_SNAKE_CASE__    :		Optional[int]			)					->       List[Any]:
 if n in COLLATZ_SEQUENCE_LENGTHS:
  return COLLATZ_SEQUENCE_LENGTHS[n]
 _snake_case      :					Dict					=   n // 2 if n % 2 == 0 else 3 * n + 1
 _snake_case      :					Dict					=   collatz_sequence_length(SCREAMING_SNAKE_CASE__			) + 1
 _snake_case      :					Optional[Any]					=   sequence_length
 return sequence_length



def  lowercase    (				SCREAMING_SNAKE_CASE__    :		List[str] = 1_000_000			)					->       Dict:
 _snake_case      :					Tuple					=   max((collatz_sequence_length(SCREAMING_SNAKE_CASE__			), i) for i in range(1			,    SCREAMING_SNAKE_CASE__			)			)
 return result[1]


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





def  lowercase    (				SCREAMING_SNAKE_CASE__    :		float			,    SCREAMING_SNAKE_CASE__    :		float			)					->       float:
 _snake_case      :					str					=   float()
 try:
  _snake_case      :					str					=   mass * acceleration
 except Exception:
  return -0.0
 return force


if __name__ == "__main__":
  import doctest

  # run doctest
  doctest.testmod()

  # demo
  a__      =		12.5
  a__      =		10
  a__      =		newtons_second_law_of_motion(mass, acceleration)
  print("""The force is """, force, """N""")
