


def 							UpperCamelCase_(					_A :int	)->		int:
			UpperCamelCase__       =							abs(_A	)
			UpperCamelCase__       =							0
			while n > 0:
						res += n % 10
						n //= 10
			return res
def 							UpperCamelCase_(					_A :int	)->		int:
			UpperCamelCase__       =							abs(_A	)
			return n if n < 10 else n % 10 + sum_of_digits(n // 10	)
def 							UpperCamelCase_(					_A :int	)->		int:
			return sum(int(_A	) for c in str(abs(_A	)	)	)
def 							UpperCamelCase_(					)->		None:
			from collections.abc import Callable
			from timeit import timeit

			def benchmark_a_function(_A :Callable					,  _A :int	) -> None:
						UpperCamelCase__       =							F'''{func.__name__}({value})'''
						UpperCamelCase__       =							timeit(F'''__main__.{call}'''					,  setup="import __main__"	)
						print(F'''{call:56} = {func(_A	)} -- {timing:.4f} seconds'''	)

			for value in (26_21_44, 11_25_89_99_06_84_26_24, 1_26_76_50_60_02_28_22_94_01_49_67_03_20_53_76):
						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()






from __future__ import annotations

import numpy as np
def 							UpperCamelCase_(					_A :list[float]	)->		Optional[Any]:
			return np.maximum(0					,  _A	)


if __name__ == "__main__":
						print(np.array(relu([-1, 0, 5])))  # --> [0, 0, 5]


