

'''simple docstring'''
from __future__ import annotations

__magic_name__     						=						{1: 1}







def       _A	(			snake_case  )    ->			int:
   if n in COLLATZ_SEQUENCE_LENGTHS:
      return COLLATZ_SEQUENCE_LENGTHS[n]
   _lowercase    :   List[str]      =     n // 2 if n % 2 == 0 else 3 * n + 1
   _lowercase    :   Tuple      =     collatz_sequence_length(__lowerCamelCase  ) + 1
   _lowercase    :   Tuple      =     sequence_length
   return sequence_length







def       _A	(			snake_case = 1_00_00_00  )    ->			int:
   _lowercase    :   Optional[Any]      =     max((collatz_sequence_length(__lowerCamelCase  ), i) for i in range(1	,							__lowerCamelCase  )  )
   return result[1]


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









'''simple docstring'''
def       _A	(			snake_case  )    ->			list:
   _lowercase    :   Optional[Any]      =     1.3
   _lowercase    :   Optional[Any]      =     len(snake_case  )
   _lowercase    :   Optional[int]      =     False

   while not completed:
      # Update the gap value for a next comb
      _lowercase    :   Tuple      =     int(gap / shrink_factor  )
      if gap <= 1:
         _lowercase    :   List[str]      =     True

      _lowercase    :   Optional[int]      =     0
      while index + gap < len(snake_case  ):
         if data[index] > data[index + gap]:
            # Swap values
            _lowercase  ,   _lowercase    :   Any      =     data[index + gap], data[index]
            _lowercase    :   Tuple      =     False
         index += 1

   return data


if __name__ == "__main__":
    import doctest

    doctest.testmod()

    _snake_case     						=						input('Enter numbers separated by a comma:\n').strip()
    _snake_case     						=						[int(item) for item in user_input.split(',')]
    print(comb_sort(unsorted))






