


'''simple docstring'''



def   lowerCamelCase							(_SCREAMING_SNAKE_CASE				:       int       ):
					__a      :	Optional[Any]    =  abs(lowercase__       )
					__a      :	int    =  0
					while n > 0:
										res += n % 10
										n //= 10
					return res






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE				:       int       ):
					__a      :	List[str]    =  abs(lowercase__       )
					return n if n < 10 else n % 10 + sum_of_digits(n // 10       )






def   lowerCamelCase							(_SCREAMING_SNAKE_CASE				:       int       ):
					return sum(int(lowercase__       ) for c in str(abs(lowercase__       )       )       )






def   lowerCamelCase							():
					from collections.abc import Callable
					from timeit import timeit

					def benchmark_a_function(_SCREAMING_SNAKE_CASE				:       Callable						,				_SCREAMING_SNAKE_CASE				:       int       ) -> None:
										__a      :	Union[str, Any]    =  F"""{func.__name__}({value})"""
										__a      :	Any    =  timeit(F"""__main__.{call}"""						,				setup='import __main__'       )
										print(F"""{call:56} = {func(lowercase__       )} -- {timing:.4f} seconds"""       )

					for value in (262_144, 1_125_899_906_842_624, 1_267_650_600_228_229_401_496_703_205_376):
										for func in (sum_of_digits, sum_of_digits_recursion, sum_of_digits_compact):
															benchmark_a_function(lowercase__						,				lowercase__       )
										print()


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						benchmark()







'''simple docstring'''



import os






def   lowerCamelCase							():
					with open(os.path.dirname(_SCREAMING_SNAKE_CASE       ) + '/p022_names.txt'       ) as file:
										__a      :	List[Any]    =  str(file.readlines()[0]       )
										__a      :	str    =  names.replace('"'						,				''       ).split(','       )

					names.sort()

					__a      :	Union[str, Any]    =  0
					__a      :	Tuple    =  0

					for i, name in enumerate(_SCREAMING_SNAKE_CASE       ):
										for letter in name:
															name_score += ord(_SCREAMING_SNAKE_CASE       ) - 64

										total_score += (i + 1) * name_score
										__a      :	Any    =  0
					return total_score


if __name__ == "__main__":
	print(solution())



