



import os



def 			__a	(       ) ->					str:






						'''simple docstring'''



						with open(os.path.dirname(__lowerCamelCase							) + """/p022_names.txt"""							) as file:
												UpperCAmelCase_=  str(file.readlines()[0]							)
												UpperCAmelCase_=  names.replace("""\""""     ,""""""							).split(""","""							)

						names.sort()

						UpperCAmelCase_=  0
						UpperCAmelCase_=  0

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

												total_score += (i + 1) * name_score
												UpperCAmelCase_=  0
						return total_score


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









def        __lowerCAmelCase		(	__lowerCamelCase						:     int						)	->    bool:
					if number < 0:
										raise ValueError("""number must not be negative"""						)
					return number & (number - 1) == 0


if __name__ == "__main__":
				import doctest

				doctest.testmod()




