

import os





def      snake_case_				()      ->     int:
   with open(os.path.dirname(__A					) + """/p022_names.txt"""					) as file:
      __lowerCAmelCase  :      Optional[Any]    =						str(file.readlines()[0]					)
      __lowerCAmelCase  :      Dict    =						names.replace("""\"""" ,       """"""					).split(""","""					)

   names.sort()

   __lowerCAmelCase  :      List[Any]    =						0
   __lowerCAmelCase  :      int    =						0

   for i, name in enumerate(__A					):
      for letter in name:
         name_score += ord(__A					) - 6_4

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


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





def      snake_case_				()      ->     List[Any]:
   for n in range(1 ,       1_0_0_0_0_0_0					):
      yield n * (n + 1) // 2





def      snake_case_				(__A					:						Dict					)      ->     Tuple:
   __lowerCAmelCase  :      Optional[int]    =						1
   __lowerCAmelCase  :      Optional[int]    =						2
   while i * i <= n:
      __lowerCAmelCase  :      Optional[int]    =						0
      while n % i == 0:
         n //= i
         multiplicity += 1
      divisors_count *= multiplicity + 1
      i += 1
   if n > 1:
      divisors_count *= 2
   return divisors_count





def      snake_case_				()      ->     Dict:
   return next(i for i in triangle_number_generator() if count_divisors(__A					) > 5_0_0					)


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


