





'''simple docstring'''




import os




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

	names.sort()

	snake_case__	       =   0
	snake_case__	       =   0

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

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


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










'''simple docstring'''




from abc import ABC, abstractmethod
from argparse import ArgumentParser






class 				__snake_case     (					__magic_name__							):





	@staticmethod
	@abstractmethod
	def   _snake_case   (		UpperCamelCase_		)      ->		Dict:
		raise NotImplementedError()





	@abstractmethod
	def   _snake_case   (		self		)      ->		List[Any]:
		raise NotImplementedError()



