


'''simple docstring'''

import os
def      __a	(							)						->			List[str]:







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

  names.sort()

  lowerCAmelCase											=	0
  lowerCAmelCase											=	0

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

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


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






"""simple docstring"""

def lowerCAmelCase_   (					UpperCamelCase__						:			list					, UpperCamelCase__						:			int					, UpperCamelCase__						:			int = 0					, UpperCamelCase__						:			int = 0			):






 """simple docstring"""







 __lowercase						=						right or len(UpperCamelCase__			) - 1
 if left > right:
  return -1
 elif list_data[left] == key:
  return left
 elif list_data[right] == key:
  return right
 else:
  return search(UpperCamelCase__					, UpperCamelCase__					, left + 1					, right - 1			)


if __name__ == "__main__":
       import doctest

       doctest.testmod()
