



"""simple docstring"""






from ..utils import DummyObject, requires_backends

class  __SCREAMING_SNAKE_CASE    (   metaclass=__a     ):


					'''simple docstring'''





					_a         =							['note_seq']



					def __init__( self							:						int,						*lowerCamelCase							:						Union[str, Any],						**lowerCamelCase							:						Union[str, Any]  )->      Any:
								requires_backends(self,						['''note_seq''']  )



					@classmethod
					def 	snake_case ( cls							:						str,						*lowerCamelCase							:						Union[str, Any],						**lowerCamelCase							:						Any  )->      Optional[Any]:
								requires_backends(cls,						['''note_seq''']  )




					@classmethod
					def 	snake_case ( cls							:						Optional[Any],						*lowerCamelCase							:						List[str],						**lowerCamelCase							:						Tuple  )->      List[str]:
								requires_backends(cls,						['''note_seq''']  )









"""simple docstring"""






import os






def   snake_case__     (	):
			"""simple docstring"""
			with open(os.path.dirname(__lowerCamelCase			) + '''/p022_names.txt'''			) as file:
						lowerCamelCase__	:	Tuple				=str(file.readlines()[0]			)
						lowerCamelCase__	:	int				=names.replace('''"'''							,	''''''			).split(''','''			)

			names.sort()

			lowerCamelCase__	:	Union[str, Any]				=0
			lowerCamelCase__	:	str				=0

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

						total_score += (i + 1) * name_score
						lowerCamelCase__	:	Dict				=0
			return total_score


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




