




"""simple docstring"""




def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						int				)  ->							int:
    UpperCAmelCase_										=					abs(__UpperCamelCase				)
    UpperCAmelCase_										=					0
    while n > 0:
        res += n % 10
        n //= 10
    return res




def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						int				)  ->							int:
    UpperCAmelCase_										=					abs(__UpperCamelCase				)
    return n if n < 10 else n % 10 + sum_of_digits(n // 10				)




def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						int				)  ->							int:
    return sum(int(__UpperCamelCase				) for c in str(abs(__UpperCamelCase				)				)				)




def  SCREAMING_SNAKE_CASE     (	)  ->							None:
    from collections.abc import Callable
    from timeit import timeit

    def benchmark_a_function(__UpperCamelCase      :						Callable	,					__UpperCamelCase      :						int				) -> None:
        UpperCAmelCase_										=					f'{func.__name__}({value})'
        UpperCAmelCase_										=					timeit(f'__main__.{call}'	,					setup='''import __main__'''				)
        print(f'{call:56} = {func(__UpperCamelCase				)} -- {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(__UpperCamelCase	,					__UpperCamelCase				)
        print()


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 benchmark()











import baseaa




def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						str				)  ->							bytes:
    return baseaa.baaencode(string.encode('''utf-8'''				)				)




def  SCREAMING_SNAKE_CASE     (	__UpperCamelCase      :						bytes				)  ->							str:
    return baseaa.baadecode(__UpperCamelCase				).decode('''utf-8'''				)


if __name__ == "__main__":
 _lowerCamelCase      			=						'Hello World!'
 _lowerCamelCase      			=						baseaa_encode(test)
 print(encoded)

 _lowerCamelCase      			=						baseaa_decode(encoded)
 print(decoded)





