

"""simple docstring"""




import os
def    __SCREAMING_SNAKE_CASE						(						):
					"""simple docstring"""
					A			=					0
					A			=					0
					with open(os.path.dirname(lowercase__      ) + "/p022_names.txt"      ) as file:
										A			=					str(file.readlines()[0]      )
										A			=					name.replace("\""			,							""      ).split(","      )

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


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













"""simple docstring"""
def        lowerCamelCase_  (						_lowerCamelCase				):
 lowerCamelCase__     :			int     				=						5381
 for x in s:
  lowerCamelCase__     :			Union[str, Any]     				=						((hash_value << 5) + hash_value) + ord(_lowerCamelCase				)
 return hash_value & 0Xffffffff

