


"""simple docstring"""







def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						       =    abs(_a       )
					__SCREAMING_SNAKE_CASE						       =    0
					while n > 0:
										res += n % 10
										n //= 10
					return res




def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						       =    abs(_a       )
					return n if n < 10 else n % 10 + sum_of_digits(n // 10       )




def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


					return sum(int(_a       ) for c in str(abs(_a       )       )       )




def        UpperCAmelCase__	():




					'''simple docstring'''


					from collections.abc import Callable
					from timeit import timeit

					def benchmark_a_function(lowerCAmelCase_  ,						lowerCAmelCase_       ) -> None:
										__SCREAMING_SNAKE_CASE						       =    f"""{func.__name__}({value})"""
										__SCREAMING_SNAKE_CASE						       =    timeit(f"""__main__.{call}"""  ,						setup="import __main__"       )
										print(f"""{call:56} = {func(_a       )} -- {timing:.4f} seconds"""       )

					for value in (26_2144, 1125_8999_0684_2624, 126_7650_6002_2822_9401_4967_0320_5376):
										for func in (sum_of_digits, sum_of_digits_recursion, sum_of_digits_compact):
															benchmark_a_function(_a  ,						_a       )
										print()


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		benchmark()




"""simple docstring"""







def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


					return " ".join(
					    "".join(word[::-1]       ) if len(lowerCAmelCase_       ) > 4 else word for word in sentence.split()       )


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		print(reverse_long_words('''Hey wollef sroirraw'''))
