

"""simple docstring"""
from __future__ import annotations

from collections.abc import Generator







def       UpperCamelCase_					(     lowerCamelCase							:					int   )						->     Generator[int, None, None]:



       """simple docstring"""







       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:
                     __magic_name__			:		int        =     3 * n + 1
              yield n







def       UpperCamelCase_					(     )						->     List[str]:



       """simple docstring"""







       __magic_name__			:		Tuple        =     43
       __magic_name__			:		Optional[int]        =     tuple(collatz_sequence(lowerCamelCase   )   )
       print(lowerCamelCase   )
       print(f"""Collatz sequence from {n} took {len(lowerCamelCase   )} steps."""   )


if __name__ == "__main__":
 main()



"""simple docstring"""
from collections import defaultdict







def       UpperCamelCase_					(     lowerCamelCase							:					str   )						->     dict:



       """simple docstring"""







       __magic_name__			:		defaultdict[str, int]        =     defaultdict(lowerCamelCase   )
       # Creating a dictionary containing count of each word
       for word in sentence.split():
              occurrence[word] += 1
       return occurrence


if __name__ == "__main__":
 for word, count in word_occurrence("""INPUT STRING""").items():
  print(F"""{word}: {count}""")
