import os
def 							lowerCAmelCase(	):
					__a							=   0
					__a							=   0
					with open(os.path.dirname(__lowerCamelCase						) + '/p022_names.txt'						) as file:
										__a							=   str(file.readlines()[0]						)
										__a							=   name.replace('"'      ,				''						).split(','						)

					name.sort()
					for i in range(len(__lowerCamelCase						)						):
										for j in name[i]:
															temp_sum += ord(__lowerCamelCase						) - ord('A'						) + 1
										total_sum += (i + 1) * temp_sum
										__a							=   0
					return total_sum


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





from dataclasses import dataclass
from typing import Callable, Optional

import datasets


@dataclass
class 						a__							(   datasets.BuilderConfig		):
			A__				:   Optional[Callable]								=			None
			A__				:   Optional[dict]								=			None
			A__				:   Optional[datasets.Features]								=			None



			def __SCREAMING_SNAKE_CASE							(						self    ) ->    Any:
								assert self.generator is not None, "generator must be specified"

								if self.gen_kwargs is None:
													__a							=   {}






class 						a__							(   datasets.GeneratorBasedBuilder		):
			A__				:   List[Any]								=			GeneratorConfig



			def __SCREAMING_SNAKE_CASE							(						self    ) ->    Tuple:
								return datasets.DatasetInfo(features=self.config.features    )



			def __SCREAMING_SNAKE_CASE							(						self      ,						UpperCAmelCase    ) ->    Optional[int]:
								return [datasets.SplitGenerator(name=datasets.Split.TRAIN      ,						gen_kwargs=self.config.gen_kwargs    )]







			def __SCREAMING_SNAKE_CASE							(						self      ,						**UpperCAmelCase    ) ->    Tuple:
								for idx, ex in enumerate(self.config.generator(**UpperCAmelCase    )    ):
													yield idx, ex




