
'''simple docstring'''







def   lowerCAmelCase(  a__    :  int = 100      ):







       '''simple docstring'''






       lowerCamelCase__				   =      1
       lowerCamelCase__				   =      0
       for i in range(1      , num + 1      ):
              fact *= i

       for j in str(lowerCamelCase_      ):
              result += int(lowerCamelCase_      )

       return result


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





"""simple docstring"""






from __future__ import annotations

from collections.abc import Generator


def __lowercase  (   lowerCamelCase_	:   int	):
				if not isinstance(lowerCamelCase_    ,       lowerCamelCase_	) or n < 1:
								raise Exception("Sequence only defined for positive integers"	)

				yield n
				while n != 1:
								if n % 2 == 0:
												n //= 2
								else:
												SCREAMING_SNAKE_CASE__  				=					3 * n + 1
								yield n


def __lowercase  (   ):
				SCREAMING_SNAKE_CASE__  				=					43
				SCREAMING_SNAKE_CASE__  				=					tuple(collatz_sequence(lowerCamelCase_	)	)
				print(lowerCamelCase_	)
				print(F'''Collatz sequence from {n} took {len(lowerCamelCase_	)} steps.'''	)


if __name__ == "__main__":
	main()
