




def SCREAMING_SNAKE_CASE       ( lowercase_ = 1_000_000		)     -> int:



       """simple docstring"""

       A__   				=					1
       A__   				=					1
       A__   				=					{1: 1}

       for inputa in range(2				,       lowercase_		):
              A__   				=					0
              A__   				=					inputa

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

              if inputa not in counters:
                     A__   				=					counter

              if counter > pre_counter:
                     A__   				=					inputa
                     A__   				=					counter
       return largest_number


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








def SCREAMING_SNAKE_CASE       ( lowercase_		)     -> int:



       """simple docstring"""

       A__   				=					1
       for i in range(1				,       num + 1		):
              fact *= i
       return fact







def SCREAMING_SNAKE_CASE       ( lowercase_		)     -> int:



       """simple docstring"""

       A__   				=					0
       while number > 0:
              A__   				=					number % 10
              sum_of_digits += last_digit
              A__   				=					number // 10  # Removing the last_digit from the given number
       return sum_of_digits







def SCREAMING_SNAKE_CASE       ( lowercase_ = 100		)     -> int:



       """simple docstring"""

       A__   				=					factorial(lowercase_		)
       A__   				=					split_and_add(lowercase_		)
       return result


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


