




def        __UpperCAmelCase						(							lowerCamelCase_ :     int = 1_00_00_00  )       ->  int:







			"""simple docstring"""





			SCREAMING_SNAKE_CASE_   : List[Any]					  =      1
			SCREAMING_SNAKE_CASE_   : str					  =      1
			SCREAMING_SNAKE_CASE_   : Tuple					  =      {1: 1}

			for inputa in range(2  ,							lowerCamelCase_  ):
						SCREAMING_SNAKE_CASE_   : Union[str, Any]					  =      0
						SCREAMING_SNAKE_CASE_   : List[Any]					  =      inputa

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

						if inputa not in counters:
									SCREAMING_SNAKE_CASE_   : Union[str, Any]					  =      counter

						if counter > pre_counter:
									SCREAMING_SNAKE_CASE_   : int					  =      inputa
									SCREAMING_SNAKE_CASE_   : Tuple					  =      counter
			return largest_number


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











"""simple docstring"""







def      UpperCamelCase       ( _A  ,				_A )     ->       None:
				lowercase    :      List[Any]       = len(_A )
				print("""The following activities are selected:""" )

				# The first activity is always selected
				lowercase    :      Optional[int]       = 0
				print(_A  ,				end=""",""" )

				# Consider rest of the activities
				for j in range(_A ):
								# If this activity has start time greater than
								# or equal to the finish time of previously
								# selected activity, then select it
								if start[j] >= finish[i]:
												print(_A  ,				end=""",""" )
												lowercase    :      str       = j


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				_lowerCAmelCase            =	[1, 3, 0, 5, 8, 5]
				_lowerCAmelCase            =	[2, 4, 6, 7, 9, 9]
				print_max_activities(start, finish)
