


import os






def 							__lowercase     (				):
							with open(os.path.dirname(__lowerCAmelCase     ) + '/p022_names.txt'     ) as file:
														a__    =  str(file.readlines()[0]     )
														a__    =  names.replace('"'      ,					''     ).split(','     )

							names.sort()

							a__    =  0
							a__    =  0

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

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


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








def 							__lowercase     (				__lowerCAmelCase							:       int = 2_0_0     ):
							a__    =  [1, 2, 5, 1_0, 2_0, 5_0, 1_0_0, 2_0_0]
							a__    =  [0] * (pence + 1)
							a__    =  1  # base case: 1 way to make 0 pence

							for coin in coins:
														for i in range(__lowerCAmelCase      ,					pence + 1      ,					1     ):
																					number_of_ways[i] += number_of_ways[i - coin]
							return number_of_ways[pence]


if __name__ == "__main__":
						assert solution(2_00) == 7_36_82




