
from __future__ import annotations

from collections.abc import Generator
def     UpperCAmelCase__							(       __magic_name__						:     int  ):


					'''simple docstring'''

					if not isinstance(__magic_name__							,  __magic_name__  ) or n < 1:
										raise Exception('''Sequence only defined for positive integers'''  )

					yield n
					while n != 1:
										if n % 2 == 0:
															n //= 2
										else:
															lowerCAmelCase		:					List[Any]  	=     3 * n + 1
										yield n
def     UpperCAmelCase__							(       ):


					'''simple docstring'''

					lowerCAmelCase		:					List[Any]  	=     43
					lowerCAmelCase		:					Optional[Any]  	=     tuple(collatz_sequence(__magic_name__  )  )
					print(__magic_name__  )
					print(f'''Collatz sequence from {n} took {len(__magic_name__  )} steps.'''  )


if __name__ == "__main__":
		main()


from ..utils import requires_backends


__SCREAMING_SNAKE_CASE			:   Union[str, Any]         =     None


class 		__magic_name__   :





		def __init__(							self    :	Optional[int]						,  *lowerCamelCase__    :	List[str]						,  **lowerCamelCase__    :	Optional[Any]				):
							requires_backends(self						,  ['''detectron2''']				)





		@classmethod
		def       _A							(							cls    :	Dict						,  *lowerCamelCase__    :	List[str]						,  **lowerCamelCase__    :	Optional[Any]				):
							requires_backends(cls						,  ['''detectron2''']				)
